public void RemoveToolbar(DockToolbar bar) { IDockToolbar db = (IDockToolbar)bar; db.Visible = false; bar.Destroy(); bars.Remove(bar); }
public void ClearToolbars() { foreach (DockToolbar bar in bars) { IDockToolbar db = (IDockToolbar)bar; db.Visible = false; bar.Destroy(); } bars.Clear(); }
protected void OnViewToolbar(object ob) { IDockToolbar bar = (IDockToolbar)ob; bar.Visible = !bar.Visible; }