Ignore:
Timestamp:
01/07/19 14:55:34 (4 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.MainForm.WindowsForms/3.3/Controls/ProgressView.cs

    r16511 r16512  
    3838      : base() {
    3939      if (control == null) throw new ArgumentNullException("control");
     40      if (control.Parent == null) throw new InvalidOperationException("A Progress can only be shown on controls that have a Parent-control. Therefore, Dialogs and Forms cannot have an associated ProgressView.");
    4041      if (content == null) throw new ArgumentNullException("content");
    4142      InitializeComponent();
     
    127128        return;
    128129      }
    129       //if (Parent == null) return;
     130      if (Parent == null) return;
    130131
    131132      Visible = false;
Note: See TracChangeset for help on using the changeset viewer.