Esempio n. 1
0
 private void Connect()
 {
     try {
         accessPoint.Open();
     }
     catch {
         new CouldNotConnectError(accessPoint).ShowDialog();
     }
     refreshConnectionDependentComponents();
 }
 private void retryButton_Click(object sender, EventArgs e)
 {
     try {
         accessPoint.Open();
         this.Close();
     }
     catch {
         MessageBox.Show("Still cannot connect.",
                         "Cannot Connect",
                         MessageBoxButtons.OK,
                         MessageBoxIcon.Error);
     }
 }