private void barManager1_UnMerge(object sender, DevExpress.XtraBars.BarManagerMergeEventArgs e)
        {
            Bar newBar = barManager1.Bars["DynamicBar"];

            if (newBar != null)
            {
                newBar.Dispose();
            }
        }
Beispiel #2
0
        private void barManager1_Merge(object sender, DevExpress.XtraBars.BarManagerMergeEventArgs e)
        {
            var parent = barManager1.Bars["Tools"];
            var child  = e.ChildManager.Bars["Tools"];

            if (child != null)
            {
                parent.Merge(child);
            }
        }
        private void barManager1_Merge(object sender, DevExpress.XtraBars.BarManagerMergeEventArgs e)
        {
            if (e.ChildManager.Form is Form2)
            {
                Bar newBar = new Bar(barManager1);
                newBar.BarName           = "DynamicBar";
                newBar.OptionsBar.Hidden = true;
                Bar sourceBar = e.ChildManager.Bars["Custom 2"];

                newBar.DockStyle = BarDockStyle.Top;
                barManager1.Bars.Add(newBar);
                newBar.Merge(sourceBar);
                sourceBar.Visible = false;
            }
        }
Beispiel #4
0
        private void barManager1_UnMerge(object sender, DevExpress.XtraBars.BarManagerMergeEventArgs e)
        {
            var parentBM = sender as BarManager;

            parentBM.BeginUpdate();
            int count = e.ChildManager.Bars.Count;

            for (int i = 0; i < count; i++)
            {
                if (e.ChildManager.Bars[i].BarName == "ToolsSaleType")
                {
                    parentBM.Bars["Tools"].UnMerge();
                    parentBM.Bars["Tools"].Visible = false;
                }
                else if (e.ChildManager.Bars[i].BarName == "Tools2")
                {
                    parentBM.Bars["Tools"].UnMerge();
                    parentBM.Bars["Tools"].Visible = false;
                }
            }
            parentBM.EndUpdate();
        }
Beispiel #5
0
 private void barManager1_UnMerge(object sender, DevExpress.XtraBars.BarManagerMergeEventArgs e)
 {
     barManager1.Bars["Tools"].UnMerge();
 }