private void button9_Click(object sender, EventArgs e) { this.Hide(); var x = new DesignForm(); x.Show(); }
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); }