private void btnCommands_Click(object sender, EventArgs e) { CommandForm cf = new CommandForm(); cf.Show(); Hide(); }
private void DisplayForm() { if (CommandForm != null) { if (CommandForm.Visible) { CommandForm.Focus(); } else { if (DisplayFormModal) { CommandForm.ShowDialog(new WindowWrapper((IntPtr)Application.MainFrameHWND)); } else { CommandForm.Show(new WindowWrapper((IntPtr)Application.MainFrameHWND)); } } } }