Ejemplo n.º 1
0
        private void btnCommands_Click(object sender, EventArgs e)
        {
            CommandForm cf = new CommandForm();

            cf.Show();
            Hide();
        }
Ejemplo n.º 2
0
 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));
             }
         }
     }
 }