Changeset 7162
- Timestamp:
- 12/09/11 13:23:29 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs
r7156 r7162 24 24 using System.Linq; 25 25 using System.Threading; 26 using System.Threading.Tasks; 26 27 using System.Windows.Forms; 27 28 using HeuristicLab.Clients.Hive.Views; … … 32 33 using HeuristicLab.Optimization; 33 34 using HeuristicLab.PluginInfrastructure; 34 using System.Threading.Tasks;35 35 36 36 namespace HeuristicLab.Clients.Hive.JobManager.Views { … … 302 302 } 303 303 private void Content_ExceptionOccured(object sender, EventArgs<Exception> e) { 304 // don't show exception, it is logged anyway304 throw e.Value; 305 305 } 306 306 private void Content_StateLogListChanged(object sender, EventArgs e) { … … 317 317 SetEnabledStateOfControls(); 318 318 } 319 } 319 } 320 320 321 321 private void UpdateStateLogList() { … … 336 336 if (nameTextBox.Text.Trim() == string.Empty) { 337 337 MessageBox.Show("Please enter a name for the job before uploading it!", "HeuristicLab Hive Job Manager", MessageBoxButtons.OK, MessageBoxIcon.Information); 338 } else if (Content.ExecutionState == ExecutionState.Paused) { 338 } else if (Content.ExecutionState == ExecutionState.Paused) { 339 339 var task = System.Threading.Tasks.Task.Factory.StartNew(ResumeJobAsync, Content); 340 340 task.ContinueWith((t) => { … … 350 350 private void pauseButton_Click(object sender, EventArgs e) { 351 351 var task = System.Threading.Tasks.Task.Factory.StartNew(PauseJobAsync, Content); 352 task.ContinueWith((t) => { 352 task.ContinueWith((t) => { 353 353 FinishProgressView(); 354 354 MessageBox.Show("An error occured pausing the job. See the log for more information.", "HeuristicLab Hive Job Manager", MessageBoxButtons.OK, MessageBoxIcon.Error); 355 355 Content.Log.LogException(t.Exception); 356 356 }, TaskContinuationOptions.OnlyOnFaulted); 357 } 357 } 358 358 359 359 private void stopButton_Click(object sender, EventArgs e) { … … 533 533 if (tabControl.SelectedTab == permissionTabPage) { 534 534 if (!Content.IsSharable) { 535 MessageBox.Show("Unable to load tab. You have insufficient access privileges.");535 MessageBox.Show("Unable to load permissions. You have insufficient access privileges.", "HeuristicLab Hive Job Manager", MessageBoxButtons.OK, MessageBoxIcon.Information); 536 536 tabControl.SelectedTab = tasksTabPage; 537 537 }
Note: See TracChangeset
for help on using the changeset viewer.