public void OpenConnectWindow()
        {
            ConnectWindow connectWindow = new ConnectWindow();
            DialogResult  result        = connectWindow.ShowDialog(this);

            if (result == DialogResult.Cancel)
            {
                Close();
            }
            else if (result == DialogResult.Abort)
            {
                WindowState   = FormWindowState.Minimized;
                ShowInTaskbar = false;
            }
            else if (result == DialogResult.OK)
            {
                draftClient = new DraftClient(this, connectWindow.GetHostname(), connectWindow.GetAlias());
            }
        }
 public void OpenConnectWindow()
 {
     ConnectWindow connectWindow = new ConnectWindow();
     DialogResult result = connectWindow.ShowDialog(this);
     if (result == System.Windows.Forms.DialogResult.Cancel)
         Close();
     else if (result == System.Windows.Forms.DialogResult.Abort)
     {
         WindowState = FormWindowState.Minimized;
         ShowInTaskbar = false;
     }
     else if (result == System.Windows.Forms.DialogResult.OK)
     {
         draftClient = new DraftClient(this, connectWindow.GetHostname(), connectWindow.GetAlias());
     }
 }