Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/07/19 14:55:34 (6 years ago)
Author:
pfleck
Message:

#2845

  • Re-enabled null-check and added exception when showing Progress on control with no parent (Forms and Dialogs).
  • Adapted Progress in HiveResourceSelectorDialog to show the dialog on the selector-View and not on the dialog itself.
File:
1 edited

Legend:

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

    r16430 r16512  
    9696      if (InvokeRequired) Invoke((Action<object, EventArgs>)HiveClient_Instance_Refreshing, sender, e);
    9797      else {
    98         Progress.ShowOnControl(this, "Refreshing", ProgressMode.Indeterminate);
    9998        refreshButton.Enabled = false;
     99        okButton.Enabled = false;
     100        cancelButton.Enabled = false;
     101        // Progress cannot be shown on dialog (no parent control), thus it is shown on the selector
     102        Progress.Show(hiveResourceSelector, "Refreshing", ProgressMode.Indeterminate);
    100103      }
    101104    }
     
    104107      if (InvokeRequired) Invoke((Action<object, EventArgs>)HiveClient_Instance_Refreshed, sender, e);
    105108      else {
    106         Progress.HideFromControl(this);
     109        Progress.Hide(hiveResourceSelector);
     110        okButton.Enabled = true;
     111        cancelButton.Enabled = true;
    107112        refreshButton.Enabled = true;
    108113      }
Note: See TracChangeset for help on using the changeset viewer.