public void Deny_Unrestricted() { StateBag bag = new StateBag(true); Assert.IsNotNull(bag.Add("key", "value"), "Add"); Assert.AreEqual(1, bag.Count, "Count"); Assert.IsNotNull(bag.GetEnumerator(), "GetEnumerator"); bag.SetItemDirty("key", true); Assert.IsTrue(bag.IsItemDirty("key"), "IsItemDirty"); bag.Remove("key"); bag.Clear(); bag["key"] = "value"; Assert.IsNotNull(bag["key"], "this[string]"); Assert.IsNotNull(bag.Keys, "Keys"); Assert.IsNotNull(bag.Values, "Values"); #if NET_2_0 bag.SetDirty(true); #endif }
internal void SetDirty() { _statebag.SetDirty(true); if (_itemStyle != null) { _itemStyle.SetDirty(); } if (_headerStyle != null) { _headerStyle.SetDirty(); } if (_footerStyle != null) { _footerStyle.SetDirty(); } if (_controlStyle != null) { _controlStyle.SetDirty(); } }
internal void SetDirty() { viewState.SetDirty(true); }
internal void SetDirty() { _bag.SetDirty(true); }
internal void LoadViewState (object state) { if (state == null) return; object [] states = (object []) state; if (states [0] != null) { sb = new StateBag (true); sb.LoadViewState (states[0]); sb.SetDirty (true); } if (states [1] != null) text = (string) states [1]; if (states [2] != null) value = (string) states [2]; if (states [3] != null) selected = (bool) states [3]; if (states [4] != null) enabled = (bool) states [4]; }
/// <devdoc> /// Tells the Parameter to record its entire state into view state. /// </devdoc> protected internal virtual void SetDirty() { ViewState.SetDirty(true); }
public void SetDirty() { ViewState.SetDirty(true); }
internal void SetDirty() { _stateBag.SetDirty(true); }
public void SetDirty(bool dirty) { viewState.SetDirty(dirty); }