Files
mono/mcs/class/System.Web/System.Web.UI.WebControls/Style.cs
T
Gaurav Vaish a25836b7b2 2001-12-19 Gaurav Vaish <[email protected]>
* 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
2001-12-19 10:35:06 +00:00

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;
}
}
}
}