示例#1
0
        private void barButtonItem3_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            groupForm gForm = new groupForm {FormBorderStyle = FormBorderStyle.FixedToolWindow};
            gForm.ShowDialog(owner: this);
            //DockPanel groupadd = dockManager1.AddPanel(DockingStyle.Float);
            //groupadd.Text = @"Adding group";
            //groupUC groupControl = new groupUC();
            //groupControl.Dock = DockStyle.Fill;
            //groupadd.ControlContainer.Controls.Add(groupControl);
            //groupadd.Options.ShowMaximizeButton = false;
            //groupadd.FloatSize = new Size(groupControl.layoutControl1.ClientWidth, groupControl.layoutControl1.ClientHeight);

            //groupadd.FloatForm.StartPosition = FormStartPosition.CenterParent;
        }
示例#2
0
        private void barButtonItem3_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            groupForm gForm = new groupForm {
                FormBorderStyle = FormBorderStyle.FixedToolWindow
            };

            gForm.ShowDialog(owner: this);
            //DockPanel groupadd = dockManager1.AddPanel(DockingStyle.Float);
            //groupadd.Text = @"Adding group";
            //groupUC groupControl = new groupUC();
            //groupControl.Dock = DockStyle.Fill;
            //groupadd.ControlContainer.Controls.Add(groupControl);
            //groupadd.Options.ShowMaximizeButton = false;
            //groupadd.FloatSize = new Size(groupControl.layoutControl1.ClientWidth, groupControl.layoutControl1.ClientHeight);


            //groupadd.FloatForm.StartPosition = FormStartPosition.CenterParent;
        }