Пример #1
0
        private void button9_Click(object sender, EventArgs e)
        {
            this.Hide();
            var x = new DesignForm();

            x.Show();
        }
Пример #2
0
        public override bool Execute(object param, object data)
        {
            MainForm form = param as MainForm;

            if (form == null)
            {
                return(false);
            }
            foreach (DockContent item in form.DockPanel.Contents)
            {
                if (item is DesignForm)
                {
                    item.Activate();
                    return(true);
                }
            }
            DesignForm role = new DesignForm(form);

            role.Show(form.DockPanel, DockState.Document);
            role.Activate();
            return(true);
        }