Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9222


Ignore:
Timestamp:
02/18/13 11:57:55 (11 years ago)
Author:
ascheibe
Message:

#2005 allow to quit the job manager even if there are up- or downloads in progress

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/HiveJobManagerView.cs

    r9219 r9222  
    123123    protected override void OnClosing(FormClosingEventArgs e) {
    124124      if (Content.Jobs.Any(x => x.IsProgressing)) {
    125         MessageBox.Show("The Hive Job Manager can only be closed after all down/uploads are finished. ", "HeuristicLab Hive Job Manager", MessageBoxButtons.OK, MessageBoxIcon.Information);
    126         e.Cancel = true;
     125        DialogResult result = MessageBox.Show("There are still unfinished down/uploads. Are you sure you want to close the window?", "HeuristicLab Hive Job Manager", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
     126
     127        if (result == DialogResult.No) {
     128          e.Cancel = true;
     129        }
    127130      } else {
    128131        base.OnClosing(e);
Note: See TracChangeset for help on using the changeset viewer.