| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- /**
- * 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;
- }
- }
-
-
- }
- }
|