Changeset 7661 for branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/Views/AddAzureServiceDialog.cs
- Timestamp:
- 03/26/12 10:58:40 (13 years ago)
- File:
-
- 1 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);
Note: See TracChangeset
for help on using the changeset viewer.