Changeset 4145 for branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Experiment.Views/3.3
- Timestamp:
- 08/04/10 15:13:28 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Experiment.Views/3.3/JobItemView.cs
r4144 r4145 47 47 Content.LatestSnapshotChanged += new EventHandler(Content_LatestSnapshotChanged); 48 48 Content.JobDtoChanged += new EventHandler(Content_JobDtoChanged); 49 Content.SnapshotRequestedStateChanged += new EventHandler(Content_SnapshotRequestedStateChanged); 49 50 } 50 51 … … 52 53 Content.LatestSnapshotChanged -= new EventHandler(Content_LatestSnapshotChanged); 53 54 Content.JobDtoChanged -= new EventHandler(Content_JobDtoChanged); 55 Content.SnapshotRequestedStateChanged -= new EventHandler(Content_SnapshotRequestedStateChanged); 54 56 base.DeregisterContentEvents(); 55 57 } … … 92 94 protected override void SetEnabledStateOfControls() { 93 95 base.SetEnabledStateOfControls(); 94 openSnapshotButton.Enabled = Content != null && Content.LatestSnapshot != null; 96 if (Content != null) { 97 openSnapshotButton.Enabled = Content.SnapshotRequestedState == SnapshotRequestedState.Idle; 98 requestSnapshotButton.Enabled = Content.SnapshotRequestedState == SnapshotRequestedState.Requested; 99 } 95 100 this.jobIdTextBox.ReadOnly = this.ReadOnly; 96 101 this.stateTextBox.ReadOnly = this.ReadOnly; … … 115 120 116 121 private void requestSnapshotButton_Click(object sender, EventArgs e) { 117 122 this.Content.RequestSnapshot(); 123 } 124 125 private void Content_SnapshotRequestedStateChanged(object sender, EventArgs e) { 126 SetEnabledStateOfControls(); 118 127 } 119 128 }
Note: See TracChangeset
for help on using the changeset viewer.