Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/08/19 14:59:31 (5 years ago)
Author:
pfleck
Message:

#2972 merged trunk into branch

Location:
branches/2972_PDPRowSelect
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2972_PDPRowSelect

  • branches/2972_PDPRowSelect/HeuristicLab.MainForm.WindowsForms/3.3/Controls/ProgressView.cs

    r16430 r16518  
    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();
     
    114115      UpdateButtonsState();
    115116
     117      Control.SuspendRepaint();
    116118      Control.Enabled = false;
    117119      Parent = Control.Parent;
    118120      BringToFront();
     121      Control.ResumeRepaint(true);
    119122      Visible = true;
    120123    }
     
    128131
    129132      Visible = false;
     133      Control.SuspendRepaint();
    130134      Control.Enabled = true;
     135      Control.ResumeRepaint(true);
    131136      Parent = null;
    132137    }
Note: See TracChangeset for help on using the changeset viewer.