mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 01:41:17 -10:00
* UI.WebControls/*.cs --> Got over 100 erros, 50+ warning (with /nowarn:1595). Trying to remove them for first build. Completing uncompleted. Creating new ones. svn path=/trunk/mcs/; revision=1640
69 lines
1.2 KiB
C#
69 lines
1.2 KiB
C#
/**
|
|
* Namespace: System.Web.UI.WebControls
|
|
* Class: Style
|
|
*
|
|
* Author: Gaurav Vaish
|
|
* Maintainer: [email protected]
|
|
* Contact: <[email protected]>, <[email protected]>
|
|
* Implementation: yes
|
|
* Status: 10%
|
|
*
|
|
* (C) Gaurav Vaish (2001)
|
|
*/
|
|
|
|
using System;
|
|
using System.Collections;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
|
|
namespace System.Web.UI.WebControls
|
|
{
|
|
public class Style : Component, IStateManager
|
|
{
|
|
internal static MARKED = 0x01;
|
|
internal static BACKCOLOR = (0x01 < 1);
|
|
|
|
private StateBag viewState;
|
|
private bool marked;
|
|
private int selectionBits;
|
|
private bool selfStateBag;
|
|
|
|
public Style()
|
|
{
|
|
Initialize(null);
|
|
selfStateBag = true;
|
|
|
|
}
|
|
|
|
public Style(StateBag bag): base()
|
|
{
|
|
Initialize(bag);
|
|
selfStateBag = false;
|
|
}
|
|
|
|
private void Initialize(StateBag bag)
|
|
{
|
|
viewState = bag;
|
|
marked = false;
|
|
selectionBits = 0x00;
|
|
}
|
|
|
|
StateBag ViewState
|
|
{
|
|
get
|
|
{
|
|
if(stateBag == null)
|
|
{
|
|
stateBag = new stateBag(false);
|
|
if(IsTrackingViewState)
|
|
stateBag.TrackViewState();
|
|
}
|
|
return stateBag;
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
|