Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/11/10 10:46:12 (13 years ago)
Author:
cneumuel
Message:

#1260

  • delete cascade for HiveExperiments and Jobs database
  • automatic downloading of HiveExperiments-List in HiveExperimentManager
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.ExperimentManager.Views/3.3/HiveExperimentManagerView.cs

    r4760 r4769  
    5353      Content_HiveExperimentsChanged(this, EventArgs.Empty);
    5454      Content_IsProgressingChanged(this, EventArgs.Empty);
     55      if(Content != null) UpdateExperimentsAsync();
    5556    }
    5657
     
    7879
    7980    private void updateExperimentsButton_Click(object sender, EventArgs e) {
    80       MethodInvoker invoker = new MethodInvoker(Content.UpdateExperimentList);
    81       invoker.BeginInvoke((ar) => {
    82         try {
    83           invoker.EndInvoke(ar);
    84         }
    85         catch (Exception ex) {
    86           ThreadPool.QueueUserWorkItem(delegate(object exception) { ErrorHandling.ShowErrorDialog(this, (Exception)exception); }, ex);
    87         }
    88       }, null);
     81      if(Content != null) UpdateExperimentsAsync();
    8982    }
    9083
     
    116109      }
    117110    }
     111
     112    private void UpdateExperimentsAsync() {
     113      MethodInvoker invoker = new MethodInvoker(Content.UpdateExperimentList);
     114      invoker.BeginInvoke((ar) => {
     115        try {
     116          invoker.EndInvoke(ar);
     117        }
     118        catch (Exception ex) {
     119          ThreadPool.QueueUserWorkItem(delegate(object exception) { ErrorHandling.ShowErrorDialog(this, (Exception)exception); }, ex);
     120        }
     121      }, null);
     122    }
    118123  }
    119124}
Note: See TracChangeset for help on using the changeset viewer.