------ #### RaUIV4 V4.0.2311.0701 - *.[全新]整合了MyDb、ryControls、MyDb_MySQL等dll文件到RaUI一个项目。 - *.[新增]新增ApkOp类,可以轻松获取APK信息。 - *.[新增]新增JsonExt扩展类,让Json操作更简单。 - *.[新增]新增WebP类,可以支持webp格式的图片。 - *.[改进]ryQuickSQL中的AddField方法改为自动替换已存在的同名值。 - *.[修复]ryQuickSQL中的AddFieldCalc方法无法正常计算的BUG。
57 lines
1.4 KiB
C#
57 lines
1.4 KiB
C#
using System.Collections.ObjectModel;
|
|
using System.Collections.Generic;
|
|
#pragma warning disable CS1591 // 缺少对公共可见类型或成员的 XML 注释
|
|
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()
|
|
{
|
|
if (PatchController.EnableNestedDisposalFix == true)
|
|
{
|
|
List<DockPane> collection = new List<DockPane>(Items);
|
|
foreach (var dockPane in collection)
|
|
{
|
|
dockPane.Close();
|
|
}
|
|
|
|
collection.Clear();
|
|
return;
|
|
}
|
|
|
|
for (int i=Count - 1; i>=0; i--)
|
|
this[i].Close();
|
|
}
|
|
|
|
internal void Remove(DockPane pane)
|
|
{
|
|
Items.Remove(pane);
|
|
}
|
|
}
|
|
}
|