Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/21/12 13:42:34 (13 years ago)
Author:
ascheibe
Message:

#1648 fetch user and client information when the optimizer starts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Access.Views/3.3/UserViews/UserInformationDialog.cs

    r8042 r8076  
    2020#endregion
    2121
     22using System;
    2223using System.Windows.Forms;
    2324
     
    3738    }
    3839
    39     void Instance_Refreshed(object sender, System.EventArgs e) {
    40       closeButton.Enabled = true;
     40    void Instance_Refreshed(object sender, EventArgs e) {
     41      if (this.InvokeRequired)
     42        this.Invoke(new Action<object, EventArgs>(Instance_Refreshed), sender, e);
     43      else
     44        closeButton.Enabled = true;
    4145    }
    4246
    43     void Instance_Refreshing(object sender, System.EventArgs e) {
    44       closeButton.Enabled = false;
     47    void Instance_Refreshing(object sender, EventArgs e) {
     48      if (this.InvokeRequired)
     49        this.Invoke(new Action<object, EventArgs>(Instance_Refreshing), sender, e);
     50      else
     51        closeButton.Enabled = false;
    4552    }
    4653
Note: See TracChangeset for help on using the changeset viewer.