예제 #1
0
 public void PushPanel(ISwoosh c, string name)
 {
     if (TabList.Count > 0)
     {
         WorkLayer = TabList.Peek();
         TabList.Push(new LayerLevel(this, c, name));
         SwooshTo(TabList.Count);
     }
     else
     {
         TabList.Push(new LayerLevel(this, c, name));
         ResizeAll(true);
     }
 }
예제 #2
0
 public LayerLevel(Swoosh _parent, ISwoosh c, string name)
 {
     parent         = _parent;
     c.SwooshParent = _parent;
     ctrl           = c;
     ctrl.Parent    = _parent;
     btn            = new CustomButton(name);
     btn.Parent     = _parent;
     btn.Click     += btn_Click;
     btn.Visible    = false;
     lbl            = new Label()
     {
         AutoSize    = true,
         BorderStyle = BorderStyle.FixedSingle,
         TextAlign   = ContentAlignment.MiddleCenter,
         Text        = ">",
         Parent      = parent,
         Width       = 0,
         MinimumSize = new Size(0, PATHBOXHEIGHT),
         MaximumSize = new Size(0, PATHBOXHEIGHT),
         Visible     = false,
     };
 }
예제 #3
0
 public void PushPanel(ISwoosh control, string name)
 {
     SwooshParent.PushPanel(control, name);
 }