Download data/DWSIM.Controls.DockPanel/WinFormsUI/Docking/DockPaneCollection.cs from introvoyz041/Dwsim: direct link, hf CLI and curl.
- Browser
- Download file 987 Bytes
-
https://huggingface.co/datasets/introvoyz041/Dwsim/resolve/main/data/DWSIM.Controls.DockPanel/WinFormsUI/Docking/DockPaneCollection.cs
- Command line
-
hf download hf://datasets/introvoyz041/Dwsim/data/DWSIM.Controls.DockPanel/WinFormsUI/Docking/DockPaneCollection.cs
-
curl -L -o DockPaneCollection.cs https://huggingface.co/datasets/introvoyz041/Dwsim/resolve/main/data/DWSIM.Controls.DockPanel/WinFormsUI/Docking/DockPaneCollection.cs
987 Bytes
| using System.Collections.ObjectModel; | |
| using System.Collections.Generic; | |
| namespace WeifenLuo.WinFormsUI.Docking | |
| { | |
| public class DockPaneCollection : ReadOnlyCollection<DockPane> | |
| { | |
| internal DockPaneCollection() | |
| : base(new List<DockPane>()) | |
| { | |
| } | |
| internal int Add(DockPane pane) | |
| { | |
| if (Items.Contains(pane)) | |
| return Items.IndexOf(pane); | |
| Items.Add(pane); | |
| return Count - 1; | |
| } | |
| internal void AddAt(DockPane pane, int index) | |
| { | |
| if (index < 0 || index > Items.Count - 1) | |
| return; | |
| if (Contains(pane)) | |
| return; | |
| Items.Insert(index, pane); | |
| } | |
| internal void Dispose() | |
| { | |
| for (int i=Count - 1; i>=0; i--) | |
| this[i].Close(); | |
| } | |
| internal void Remove(DockPane pane) | |
| { | |
| Items.Remove(pane); | |
| } | |
| } | |
| } | |