예제 #1
0
        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);
        }
예제 #2
0
        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;
        }