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