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)); }
internal DockContext(Dockspace sp) { this.sp = sp ?? throw new ArgumentNullException(nameof(sp)); }