public void SetLeft(UIForm form) { LeftForm = form; LeftDock.Add(form); LeftDock.AfterSet.Invoke(); form.Set(0, 0, SplitX - 4, H); }
public void SetSplit(int x) { SplitX = x; LeftDock.Set(0, 0, SplitX - 4, H); RightDock.Set(SplitX + 4, 0, W - (SplitX + 4), H); if (LeftForm != null) { LeftDock.Set(0, 0, SplitX - 8, H); } if (RightForm != null) { RightDock.Set(SplitX + 8, 0, W - (SplitX + 8), H); } if (LeftForm != null) { LeftForm.AfterSet?.Invoke(); } if (RightForm != null) { RightForm.AfterSet?.Invoke(); } }