public IDockToolbar AddBar(DockToolbar bar, Placement defaultPanel, bool defaultVisible) { bar.SetParentFrame(this); bars.Add(bar); DockToolbarPosition pos = new DockedPosition(defaultPanel); DockToolbarStatus s = new DockToolbarStatus(bar.Id, defaultVisible, pos); bar.DefaultStatus = s; bar.Status = s; return(bar); }
public IDockToolbar AddBar (DockToolbar bar, Placement defaultPanel, bool defaultVisible) { bar.SetParentFrame (this); bars.Add (bar); DockToolbarPosition pos = new DockedPosition (defaultPanel); DockToolbarStatus s = new DockToolbarStatus (bar.Id, defaultVisible, pos); bar.DefaultStatus = s; bar.Status = s; return bar; }