Пример #1
0
 private void openMainForm()
 {
     ServerName = textBox1.Text;
     try
     {
         Cursor.Current = Cursors.WaitCursor;
         CollectorUtils.CheckConnection(ServerName);
         Cursor.Current = Cursors.Default;
         (new Main()).Show();
         Hide();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }