Changeset 6791 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.ExperimentManager/3.3/Views/RefreshableHiveExperimentView.cs
- Timestamp:
- 09/16/11 20:19:53 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.ExperimentManager/3.3/Views/RefreshableHiveExperimentView.cs
r6743 r6791 40 40 [View("Hive Experiment View")] 41 41 [Content(typeof(RefreshableJob), true)] 42 public sealed partial class RefreshableHiveExperimentView :ItemView {42 public partial class RefreshableHiveExperimentView : HeuristicLab.Core.Views.ItemView { 43 43 private ProgressView progressView; 44 44 … … 87 87 Content.Job.PropertyChanged += new PropertyChangedEventHandler(HiveExperiment_PropertyChanged); 88 88 } 89 89 90 90 private void DeregisterHiveExperimentEvents() { 91 91 Content.Job.PropertyChanged -= new PropertyChangedEventHandler(HiveExperiment_PropertyChanged); … … 253 253 else { 254 254 if (Content != null) { 255 jobsTextBox.Text = Content.Job.JobCount.ToString();255 jobsTextBox.Text = (Content.Job.JobCount - Content.Job.CalculatingCount - Content.Job.FinishedCount).ToString(); 256 256 calculatingTextBox.Text = Content.Job.CalculatingCount.ToString(); 257 257 finishedTextBox.Text = Content.Job.FinishedCount.ToString(); … … 291 291 292 292 private void HiveExperiment_PropertyChanged(object sender, PropertyChangedEventArgs e) { 293 if (this.Content != null && e.PropertyName == "Id") this.hiveExperimentPermissionListView.HiveExperimentId = this.Content.Job.Id;293 if (this.Content != null && e.PropertyName == "Id") this.hiveExperimentPermissionListView.HiveExperimentId = this.Content.Job.Id; 294 294 } 295 295 #endregion … … 413 413 414 414 private void tabControl_SelectedIndexChanged(object sender, EventArgs e) { 415 if (tabControl.SelectedTab == sharingTabPage) {415 if (tabControl.SelectedTab == permissionTabPage) { 416 416 if (!Content.IsSharable) { 417 417 MessageBox.Show("Unable to load tab. You have insufficient access privileges."); 418 tabControl.SelectedTab = jobsTabPage;418 tabControl.SelectedTab = tasksTabPage; 419 419 } 420 420 }
Note: See TracChangeset
for help on using the changeset viewer.