- Timestamp:
- 03/26/12 10:58:40 (13 years ago)
- Location:
- branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/Views
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/Views/AddAzureServiceDialog.cs
r7565 r7661 122 122 Subscription subscription = (Subscription)cmbChooseSubscription.SelectedItem; 123 123 if (subscription.CurrentHostedServices == subscription.MaxHostedServices) { 124 MessageBox.Show("You have already created the maximum number of hosted services", "Limit Reached", MessageBoxButtons.OK, MessageBoxIcon.Error);124 PluginInfrastructure.ErrorHandling.ShowErrorDialog(new Exception("You have already created the maximum number of hosted services")); 125 125 cbNewHostedService.Checked = false; 126 126 } else { … … 264 264 } 265 265 catch (Exception ex) { 266 MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);266 PluginInfrastructure.ErrorHandling.ShowErrorDialog(ex); 267 267 } 268 268 } … … 317 317 catch (Exception ex) { 318 318 errorOccured = true; 319 MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);319 PluginInfrastructure.ErrorHandling.ShowErrorDialog(ex); 320 320 } 321 321 … … 332 332 catch (Exception ex) { 333 333 errorOccured = true; 334 MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);334 PluginInfrastructure.ErrorHandling.ShowErrorDialog(ex); 335 335 } 336 336 … … 348 348 catch (Exception ex) { 349 349 errorOccured = true; 350 MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);350 PluginInfrastructure.ErrorHandling.ShowErrorDialog(ex); 351 351 } 352 352 … … 359 359 catch (Exception ex) { 360 360 errorOccured = true; 361 MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);361 PluginInfrastructure.ErrorHandling.ShowErrorDialog(ex); 362 362 if (newHostedServiceChecked) { 363 363 CloudManagerClient.Instance.AzureProvider.DeleteHostedService(sub, hostedService.ServiceName); … … 375 375 catch (Exception ex) { 376 376 errorOccured = true; 377 MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);377 PluginInfrastructure.ErrorHandling.ShowErrorDialog(ex); 378 378 if (newHostedServiceChecked) { 379 379 CloudManagerClient.Instance.AzureProvider.DeleteHostedService(sub, hostedService.ServiceName); -
branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/Views/AddCertificate.cs
r7362 r7661 36 36 37 37 if (CertificateFile.Length == 0) { 38 MessageBox.Show("Certificate file is required", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);38 PluginInfrastructure.ErrorHandling.ShowErrorDialog(new Exception("Certificate file is required")); 39 39 } else if (CertificatePassword.Length == 0) { 40 MessageBox.Show("Password is required", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);40 PluginInfrastructure.ErrorHandling.ShowErrorDialog(new Exception("Password is required")); 41 41 } else { 42 42 SetControlsEnabled(false); … … 69 69 this.Close(); 70 70 } else { 71 MessageBox.Show(e.Error.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);71 PluginInfrastructure.ErrorHandling.ShowErrorDialog(e.Error); 72 72 CertificateFile = string.Empty; 73 73 CertificateFile = string.Empty; -
branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/Views/AddSubscriptionDialog.cs
r7387 r7661 56 56 this.Close(); 57 57 } else { 58 MessageBox.Show(e.Error.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);58 PluginInfrastructure.ErrorHandling.ShowErrorDialog(e.Error); 59 59 ErrorOccured = true; 60 60 Subscription = null; -
branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/Views/DeleteDeploymentView.cs
r7608 r7661 72 72 this.Close(); 73 73 } else { 74 MessageBox.Show(e.Error.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);74 PluginInfrastructure.ErrorHandling.ShowErrorDialog(e.Error); 75 75 ErrorOccured = true; 76 76 this.Show(); -
branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/Views/DeleteHostedServiceView.cs
r7608 r7661 62 62 this.Close(); 63 63 } else { 64 MessageBox.Show(e.Error.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);64 PluginInfrastructure.ErrorHandling.ShowErrorDialog(e.Error); 65 65 ErrorOccured = true; 66 66 this.Show();
Note: See TracChangeset
for help on using the changeset viewer.