示例#1
0
        public static DockContext Build(params DockStruct[] defineList)
        {
            var dockspace = new Dockspace();

            foreach (var item in defineList)
            {
                dockspace.dock(new Dock(item.Name, item.CloseButton, item.MinSize, item.DrawFunction), item.Slot, item.Size, item.Active);
            }
            return(new DockContext(dockspace));
        }
示例#2
0
 internal DockContext(Dockspace sp)
 {
     this.sp = sp ?? throw new ArgumentNullException(nameof(sp));
 }