Exemplo n.º 1
0
 public void SetLeft(UIForm form)
 {
     LeftForm = form;
     LeftDock.Add(form);
     LeftDock.AfterSet.Invoke();
     form.Set(0, 0, SplitX - 4, H);
 }
Exemplo n.º 2
0
 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();
     }
 }