System.Collections.CollectionBase.OnClear()

Here are the examples of the csharp api class System.Collections.CollectionBase.OnClear() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

6 Examples 7

1. Example

Project: Krypton
Source File: KryptonCheckSet.cs
protected override void OnClear()
            {
                foreach(KryptonCheckButton checkButton in base.List)
                    _owner.CheckButtonRemoved(checkButton);

                base.OnClear();
            }

2. Example

Project: referencesource
Source File: collectionbase.cs
public void Clear() {
            OnClear();
            InnerList.Clear();
            OnClearComplete();
        }

3. Example

Project: referencesource
Source File: WebPartConnectionCollection.cs
protected override void OnClear() {
            CheckReadOnly();
            base.OnClear();
        }

4. Example

Project: referencesource
Source File: WebPartTransformerCollection.cs
protected override void OnClear() {
            CheckReadOnly();
            base.OnClear();
        }

5. Example

Project: referencesource
Source File: ProxyWebPartConnectionCollection.cs
protected override void OnClear() {
            CheckReadOnly();
            if (_webPartManager != null) {
                // Remove all of the connections in this collection from the main WebPartManager
                foreach (WebPartConnection connection in this) {
                    _webPartManager.StaticConnections.Remove(connection);
                }
            }
            base.OnClear();
        }

6. Example

Project: SharpLang
Source File: CollectionBase.cs
public void Clear() {
            OnClear();
            InnerList.Clear();
            OnClearComplete();
        }