Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/13/10 17:07:10 (14 years ago)
Author:
mkommend
Message:

added ViewHost in ExperimentView for the RunCollection and implemented IStringConvertibleMatrix in RunCollection (ticket #970)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.2/AsynchronousContentView.cs

    r3266 r3329  
    2525    /// <param name="method">The delegate to invoke.</param>
    2626    protected new void Invoke(Delegate method) {
    27       // prevent blocking of worker thread in Invoke, if the control is disposed
     27      // prevents blocking of worker thread in Invoke, if the control is disposed
     28      if (!IsHandleCreated)
     29        return;
    2830      IAsyncResult result = BeginInvoke(method);
    2931      result.AsyncWaitHandle.WaitOne(1000, false);
    30       if (result.IsCompleted) try { EndInvoke(result); } catch (ObjectDisposedException) { }
    31       else {
     32      if (result.IsCompleted) try { EndInvoke(result); }
     33        catch (ObjectDisposedException) { } else {
    3234        ThreadPool.RegisterWaitForSingleObject(result.AsyncWaitHandle,
    3335          new WaitOrTimerCallback((x, b) => { try { EndInvoke(result); } catch (ObjectDisposedException) { } }),
     
    4244    /// <param name="args">The invoke arguments.</param>
    4345    protected new void Invoke(Delegate method, params object[] args) {
    44       // prevent blocking of worker thread in Invoke, if the control is disposed
     46      // prevents blocking of worker thread in Invoke, if the control is disposed
     47      if (!IsHandleCreated)
     48        return;
    4549      IAsyncResult result = BeginInvoke(method, args);
    4650      result.AsyncWaitHandle.WaitOne(1000, false);
Note: See TracChangeset for help on using the changeset viewer.