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