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); } }
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, }; }
public void PushPanel(ISwoosh control, string name) { SwooshParent.PushPanel(control, name); }