Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/06/10 15:31:15 (14 years ago)
Author:
cneumuel
Message:
  • reorganized HiveExperiment code
  • disabled snapshot-functionality... this needs more refactoring serverside
  • added short documentation which explains how to use hive
  • some minor changes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Experiment.Views/3.3/JobItemView.cs

    r4170 r4173  
    102102
    103103    protected override void SetEnabledStateOfControls() {
    104       base.SetEnabledStateOfControls();
    105       if (Content != null) {
    106         openSnapshotButton.Enabled = Content.LatestSnapshot != null && Content.SnapshotRequestedState == SnapshotRequestedState.Idle;
    107         requestSnapshotButton.Enabled = Content.SnapshotRequestedState == SnapshotRequestedState.Idle;
     104      if (InvokeRequired) {
     105        this.InvokeIfRequired(c => { SetEnabledStateOfControls(); });
     106      } else {
     107        base.SetEnabledStateOfControls();
     108        if (Content != null) {
     109          openSnapshotButton.Enabled = Content.LatestSnapshot != null && Content.SnapshotRequestedState == SnapshotRequestedState.Idle;
     110          requestSnapshotButton.Enabled = Content.SnapshotRequestedState == SnapshotRequestedState.Idle;
     111        }
     112        this.jobIdTextBox.ReadOnly = this.ReadOnly;
     113        this.stateTextBox.ReadOnly = this.ReadOnly;
     114        this.userIdTextBox.ReadOnly = this.ReadOnly;
     115        this.percentageTextBox.ReadOnly = this.ReadOnly;
     116        this.dateCreatedTextBox.ReadOnly = this.ReadOnly;
     117        this.dateCalculatedText.ReadOnly = this.ReadOnly;
     118        this.dateFinishedTextBox.ReadOnly = this.ReadOnly;
     119        this.priorityTextBox.ReadOnly = this.ReadOnly;
     120        this.coresNeededTextBox.ReadOnly = this.ReadOnly;
     121        this.memoryNeededTextBox.ReadOnly = this.ReadOnly;
     122        this.exceptionTextBox.ReadOnly = this.ReadOnly;
     123        this.projectTextBox.ReadOnly = this.ReadOnly;
     124        this.snapshotStatusText.ReadOnly = this.ReadOnly;
     125        this.snapshotTimeText.ReadOnly = this.ReadOnly;
    108126      }
    109       this.jobIdTextBox.ReadOnly = this.ReadOnly;
    110       this.stateTextBox.ReadOnly = this.ReadOnly;
    111       this.userIdTextBox.ReadOnly = this.ReadOnly;
    112       this.percentageTextBox.ReadOnly = this.ReadOnly;
    113       this.dateCreatedTextBox.ReadOnly = this.ReadOnly;
    114       this.dateCalculatedText.ReadOnly = this.ReadOnly;
    115       this.dateFinishedTextBox.ReadOnly = this.ReadOnly;
    116       this.priorityTextBox.ReadOnly = this.ReadOnly;
    117       this.coresNeededTextBox.ReadOnly = this.ReadOnly;
    118       this.memoryNeededTextBox.ReadOnly = this.ReadOnly;
    119       this.exceptionTextBox.ReadOnly = this.ReadOnly;
    120       this.projectTextBox.ReadOnly = this.ReadOnly;
    121       this.snapshotStatusText.ReadOnly = this.ReadOnly;
    122       this.snapshotTimeText.ReadOnly = this.ReadOnly;
    123127    }
    124128
Note: See TracChangeset for help on using the changeset viewer.