Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/16/11 20:19:53 (13 years ago)
Author:
ascheibe
Message:

#1233 implemented Experiment Manager review comments

Location:
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.ExperimentManager/3.3/Views
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.ExperimentManager/3.3/Views/HiveExperimentPermissionListView.cs

    r6723 r6791  
    3434      get { return hiveExperimentId; }
    3535      set { hiveExperimentId = value; }
    36     }   
     36    }
    3737
    3838    public HiveExperimentPermissionListView() {
    3939      InitializeComponent();
     40      itemsGroupBox.Text = "Permissions";
    4041    }
    4142
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.ExperimentManager/3.3/Views/HiveExperimentPermissionView.Designer.cs

    r6479 r6791  
    4848      this.permissionLabel.Location = new System.Drawing.Point(4, 57);
    4949      this.permissionLabel.Name = "permissionLabel";
    50       this.permissionLabel.Size = new System.Drawing.Size(57, 13);
     50      this.permissionLabel.Size = new System.Drawing.Size(60, 13);
    5151      this.permissionLabel.TabIndex = 2;
    52       this.permissionLabel.Text = "Permission";
     52      this.permissionLabel.Text = "Permission:";
    5353      //
    5454      // usernameTextBox
     
    5656      this.usernameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    5757                  | System.Windows.Forms.AnchorStyles.Right)));
    58       this.usernameTextBox.Location = new System.Drawing.Point(67, 28);
     58      this.usernameTextBox.Location = new System.Drawing.Point(70, 28);
    5959      this.usernameTextBox.Name = "usernameTextBox";
    60       this.usernameTextBox.Size = new System.Drawing.Size(284, 20);
     60      this.usernameTextBox.Size = new System.Drawing.Size(281, 20);
    6161      this.usernameTextBox.TabIndex = 3;
    6262      this.usernameTextBox.Validated += new System.EventHandler(this.usernameTextBox_Validated);
    63       this.usernameTextBox.Validating += new System.ComponentModel.CancelEventHandler(usernameTextBox_Validating);
    6463      //
    6564      // permissionComboBox
     
    6766      this.permissionComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    6867                  | System.Windows.Forms.AnchorStyles.Right)));
     68      this.permissionComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
    6969      this.permissionComboBox.FormattingEnabled = true;
    70       this.permissionComboBox.Location = new System.Drawing.Point(67, 54);
     70      this.permissionComboBox.Location = new System.Drawing.Point(70, 54);
    7171      this.permissionComboBox.Name = "permissionComboBox";
    72       this.permissionComboBox.Size = new System.Drawing.Size(284, 21);
    73       this.permissionComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     72      this.permissionComboBox.Size = new System.Drawing.Size(281, 21);
    7473      this.permissionComboBox.TabIndex = 4;
    7574      this.permissionComboBox.Validated += new System.EventHandler(this.permissionComboBox_Validated);
    76       this.permissionComboBox.Validating += new System.ComponentModel.CancelEventHandler(permissionComboBox_Validating);
    7775      //
    7876      // HiveExperimentPermissionView
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.ExperimentManager/3.3/Views/HiveExperimentPermissionView.resx

    r6463 r6791  
    121121    <value>17, 17</value>
    122122  </metadata>
    123   <metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    124     <value>17, 17</value>
    125   </metadata>
    126123</root>
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.ExperimentManager/3.3/Views/RefreshableHiveExperimentListView.cs

    r6725 r6791  
    2222using System;
    2323using System.Windows.Forms;
     24using HeuristicLab.Collections;
    2425using HeuristicLab.Core;
    25 using HeuristicLab.Core.Views;
    2626using HeuristicLab.MainForm;
    2727
     
    2929  [View("HiveExperimentList View")]
    3030  [Content(typeof(ItemCollection<RefreshableJob>), false)]
    31   public partial class RefreshableHiveExperimentListView : ItemCollectionView<RefreshableJob> {
     31  public partial class RefreshableHiveExperimentListView : HeuristicLab.Core.Views.ItemCollectionView<RefreshableJob> {
    3232
    3333    public RefreshableHiveExperimentListView() {
    3434      InitializeComponent();
     35      itemsGroupBox.Text = "Jobs";
    3536      this.itemsListView.View = View.Details;
    3637      this.itemsListView.Columns.Clear();
    3738      this.itemsListView.Columns.Add(new ColumnHeader("Date") { Text = "Date" });
    3839      this.itemsListView.Columns.Add(new ColumnHeader("Name") { Text = "Name" });
     40      foreach (ColumnHeader c in this.itemsListView.Columns) {
     41        c.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize);
     42      }
    3943      this.itemsListView.HeaderStyle = ColumnHeaderStyle.Clickable;
    4044      this.itemsListView.FullRowSelect = true;
     
    5660    protected override void Content_ItemsAdded(object sender, Collections.CollectionItemsChangedEventArgs<RefreshableJob> e) {
    5761      base.Content_ItemsAdded(sender, e);
     62      foreach (ColumnHeader c in this.itemsListView.Columns) {
     63        c.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent);
     64      }
     65    }
    5866
     67    protected override void Content_ItemsRemoved(object sender, CollectionItemsChangedEventArgs<RefreshableJob> e) {
     68      base.Content_ItemsRemoved(sender, e);
     69      if (Content != null && Content.Count == 0) {
     70        foreach (ColumnHeader c in this.itemsListView.Columns) {
     71          c.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize);
     72        }
     73      }
    5974    }
    6075
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.ExperimentManager/3.3/Views/RefreshableHiveExperimentView.Designer.cs

    r6727 r6791  
    1 #region License Information
    2 /* HeuristicLab
    3  * Copyright (C) 2002-2011 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    4  *
    5  * This file is part of HeuristicLab.
    6  *
    7  * HeuristicLab is free software: you can redistribute it and/or modify
    8  * it under the terms of the GNU General Public License as published by
    9  * the Free Software Foundation, either version 3 of the License, or
    10  * (at your option) any later version.
    11  *
    12  * HeuristicLab is distributed in the hope that it will be useful,
    13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    15  * GNU General Public License for more details.
    16  *
    17  * You should have received a copy of the GNU General Public License
    18  * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
    19  */
    20 #endregion
    21 
    22 using HeuristicLab.Clients.Hive.Views.ExperimentManager;
    23 using HeuristicLab.MainForm.WindowsForms;
    24 namespace HeuristicLab.Clients.Hive.ExperimentManager.Views {
     1namespace HeuristicLab.Clients.Hive.ExperimentManager.Views {
    252  partial class RefreshableHiveExperimentView {
    263    /// <summary>
     
    5027      System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(RefreshableHiveExperimentView));
    5128      this.tabControl = new System.Windows.Forms.TabControl();
    52       this.jobsTabPage = new System.Windows.Forms.TabPage();
     29      this.tasksTabPage = new System.Windows.Forms.TabPage();
    5330      this.jobsTreeView = new HeuristicLab.Clients.Hive.Views.ExperimentManager.HiveTaskItemTreeView();
     31      this.permissionTabPage = new System.Windows.Forms.TabPage();
     32      this.refreshPermissionsButton = new System.Windows.Forms.Button();
     33      this.hiveExperimentPermissionListView = new HeuristicLab.Clients.Hive.ExperimentManager.Views.HiveExperimentPermissionListView();
     34      this.runsTabPage = new System.Windows.Forms.TabPage();
    5435      this.stateTabPage = new System.Windows.Forms.TabPage();
    5536      this.stateLogViewHost = new HeuristicLab.MainForm.WindowsForms.ViewHost();
    56       this.sharingTabPage = new System.Windows.Forms.TabPage();
    57       this.refreshPermissionsButton = new System.Windows.Forms.Button();
    58       this.hiveExperimentPermissionListView = new HeuristicLab.Clients.Hive.ExperimentManager.Views.HiveExperimentPermissionListView();
    5937      this.logTabPage = new System.Windows.Forms.TabPage();
    6038      this.logView = new HeuristicLab.Core.Views.LogView();
     
    8159      this.jobsLabel = new System.Windows.Forms.Label();
    8260      this.tabControl.SuspendLayout();
    83       this.jobsTabPage.SuspendLayout();
     61      this.tasksTabPage.SuspendLayout();
     62      this.permissionTabPage.SuspendLayout();
    8463      this.stateTabPage.SuspendLayout();
    85       this.sharingTabPage.SuspendLayout();
    8664      this.logTabPage.SuspendLayout();
    8765      this.infoGroupBox.SuspendLayout();
     
    9371                  | System.Windows.Forms.AnchorStyles.Left)
    9472                  | System.Windows.Forms.AnchorStyles.Right)));
    95       this.tabControl.Controls.Add(this.jobsTabPage);
     73      this.tabControl.Controls.Add(this.tasksTabPage);
     74      this.tabControl.Controls.Add(this.permissionTabPage);
     75      this.tabControl.Controls.Add(this.runsTabPage);
    9676      this.tabControl.Controls.Add(this.stateTabPage);
    97       this.tabControl.Controls.Add(this.sharingTabPage);
    9877      this.tabControl.Controls.Add(this.logTabPage);
    9978      this.tabControl.Location = new System.Drawing.Point(0, 78);
     
    10483      this.tabControl.SelectedIndexChanged += new System.EventHandler(this.tabControl_SelectedIndexChanged);
    10584      //
    106       // jobsTabPage
    107       //
    108       this.jobsTabPage.Controls.Add(this.jobsTreeView);
    109       this.jobsTabPage.Location = new System.Drawing.Point(4, 22);
    110       this.jobsTabPage.Name = "jobsTabPage";
    111       this.jobsTabPage.Size = new System.Drawing.Size(709, 426);
    112       this.jobsTabPage.TabIndex = 5;
    113       this.jobsTabPage.Text = "Jobs";
    114       this.jobsTabPage.UseVisualStyleBackColor = true;
     85      // tasksTabPage
     86      //
     87      this.tasksTabPage.Controls.Add(this.jobsTreeView);
     88      this.tasksTabPage.Location = new System.Drawing.Point(4, 22);
     89      this.tasksTabPage.Name = "tasksTabPage";
     90      this.tasksTabPage.Size = new System.Drawing.Size(709, 426);
     91      this.tasksTabPage.TabIndex = 5;
     92      this.tasksTabPage.Text = "Tasks";
     93      this.tasksTabPage.UseVisualStyleBackColor = true;
    11594      //
    11695      // jobsTreeView
     
    131110      this.jobsTreeView.DragOver += new System.Windows.Forms.DragEventHandler(this.jobsTreeView_DragOver);
    132111      //
    133       // stateTabPage
    134       //
    135       this.stateTabPage.Controls.Add(this.stateLogViewHost);
    136       this.stateTabPage.Location = new System.Drawing.Point(4, 22);
    137       this.stateTabPage.Name = "stateTabPage";
    138       this.stateTabPage.Size = new System.Drawing.Size(709, 426);
    139       this.stateTabPage.TabIndex = 6;
    140       this.stateTabPage.Text = "States";
    141       this.stateTabPage.UseVisualStyleBackColor = true;
    142       //
    143       // stateLogViewHost
    144       //
    145       this.stateLogViewHost.Caption = "StateLog View";
    146       this.stateLogViewHost.Content = null;
    147       this.stateLogViewHost.Dock = System.Windows.Forms.DockStyle.Fill;
    148       this.stateLogViewHost.Enabled = false;
    149       this.stateLogViewHost.Location = new System.Drawing.Point(0, 0);
    150       this.stateLogViewHost.Name = "stateLogViewHost";
    151       this.stateLogViewHost.ReadOnly = false;
    152       this.stateLogViewHost.Size = new System.Drawing.Size(709, 426);
    153       this.stateLogViewHost.TabIndex = 0;
    154       this.stateLogViewHost.ViewsLabelVisible = true;
    155       this.stateLogViewHost.ViewType = null;
    156       //
    157       // sharingTabPage
    158       //
    159       this.sharingTabPage.Controls.Add(this.refreshPermissionsButton);
    160       this.sharingTabPage.Controls.Add(this.hiveExperimentPermissionListView);
    161       this.sharingTabPage.Location = new System.Drawing.Point(4, 22);
    162       this.sharingTabPage.Name = "sharingTabPage";
    163       this.sharingTabPage.Size = new System.Drawing.Size(709, 426);
    164       this.sharingTabPage.TabIndex = 7;
    165       this.sharingTabPage.Text = "Sharing";
    166       this.sharingTabPage.UseVisualStyleBackColor = true;
     112      // permissionTabPage
     113      //
     114      this.permissionTabPage.Controls.Add(this.refreshPermissionsButton);
     115      this.permissionTabPage.Controls.Add(this.hiveExperimentPermissionListView);
     116      this.permissionTabPage.Location = new System.Drawing.Point(4, 22);
     117      this.permissionTabPage.Name = "permissionTabPage";
     118      this.permissionTabPage.Size = new System.Drawing.Size(709, 426);
     119      this.permissionTabPage.TabIndex = 7;
     120      this.permissionTabPage.Text = "Permissions";
     121      this.permissionTabPage.UseVisualStyleBackColor = true;
    167122      //
    168123      // refreshPermissionsButton
     
    188143      this.hiveExperimentPermissionListView.Name = "hiveExperimentPermissionListView";
    189144      this.hiveExperimentPermissionListView.ReadOnly = false;
     145      this.hiveExperimentPermissionListView.ShowDetails = true;
    190146      this.hiveExperimentPermissionListView.Size = new System.Drawing.Size(703, 390);
    191147      this.hiveExperimentPermissionListView.TabIndex = 0;
     148      //
     149      // runsTabPage
     150      //
     151      this.runsTabPage.Location = new System.Drawing.Point(4, 22);
     152      this.runsTabPage.Name = "runsTabPage";
     153      this.runsTabPage.Padding = new System.Windows.Forms.Padding(3);
     154      this.runsTabPage.Size = new System.Drawing.Size(709, 426);
     155      this.runsTabPage.TabIndex = 8;
     156      this.runsTabPage.Text = "Runs";
     157      this.runsTabPage.UseVisualStyleBackColor = true;
     158      //
     159      // stateTabPage
     160      //
     161      this.stateTabPage.Controls.Add(this.stateLogViewHost);
     162      this.stateTabPage.Location = new System.Drawing.Point(4, 22);
     163      this.stateTabPage.Name = "stateTabPage";
     164      this.stateTabPage.Size = new System.Drawing.Size(709, 426);
     165      this.stateTabPage.TabIndex = 6;
     166      this.stateTabPage.Text = "Execution History";
     167      this.stateTabPage.UseVisualStyleBackColor = true;
     168      //
     169      // stateLogViewHost
     170      //
     171      this.stateLogViewHost.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     172                  | System.Windows.Forms.AnchorStyles.Left)
     173                  | System.Windows.Forms.AnchorStyles.Right)));
     174      this.stateLogViewHost.Caption = "StateLog View";
     175      this.stateLogViewHost.Content = null;
     176      this.stateLogViewHost.Enabled = false;
     177      this.stateLogViewHost.Location = new System.Drawing.Point(3, 3);
     178      this.stateLogViewHost.Name = "stateLogViewHost";
     179      this.stateLogViewHost.ReadOnly = false;
     180      this.stateLogViewHost.Size = new System.Drawing.Size(703, 420);
     181      this.stateLogViewHost.TabIndex = 0;
     182      this.stateLogViewHost.ViewsLabelVisible = true;
     183      this.stateLogViewHost.ViewType = null;
    192184      //
    193185      // logTabPage
     
    203195      // logView
    204196      //
     197      this.logView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     198                  | System.Windows.Forms.AnchorStyles.Left)
     199                  | System.Windows.Forms.AnchorStyles.Right)));
    205200      this.logView.Caption = "Log View";
    206201      this.logView.Content = null;
    207       this.logView.Dock = System.Windows.Forms.DockStyle.Fill;
    208       this.logView.Location = new System.Drawing.Point(0, 0);
     202      this.logView.Location = new System.Drawing.Point(3, 3);
    209203      this.logView.Name = "logView";
    210204      this.logView.ReadOnly = false;
    211       this.logView.Size = new System.Drawing.Size(709, 426);
     205      this.logView.Size = new System.Drawing.Size(703, 420);
    212206      this.logView.TabIndex = 0;
    213207      //
     
    284278      //
    285279      this.resourceIdsLabel.AutoSize = true;
    286       this.resourceIdsLabel.Location = new System.Drawing.Point(4, 56);
     280      this.resourceIdsLabel.Location = new System.Drawing.Point(3, 56);
    287281      this.resourceIdsLabel.Name = "resourceIdsLabel";
    288       this.resourceIdsLabel.Size = new System.Drawing.Size(70, 13);
     282      this.resourceIdsLabel.Size = new System.Drawing.Size(61, 13);
    289283      this.resourceIdsLabel.TabIndex = 12;
    290       this.resourceIdsLabel.Text = "ResourceIds:";
     284      this.resourceIdsLabel.Text = "Resources:";
    291285      //
    292286      // resourceNamesTextBox
     
    294288      this.resourceNamesTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    295289                  | System.Windows.Forms.AnchorStyles.Right)));
    296       this.resourceNamesTextBox.Location = new System.Drawing.Point(73, 53);
     290      this.resourceNamesTextBox.Location = new System.Drawing.Point(70, 52);
    297291      this.resourceNamesTextBox.Name = "resourceNamesTextBox";
    298292      this.resourceNamesTextBox.Size = new System.Drawing.Size(415, 20);
     
    303297      //
    304298      this.nameLabel.AutoSize = true;
    305       this.nameLabel.Location = new System.Drawing.Point(1, 27);
     299      this.nameLabel.Location = new System.Drawing.Point(3, 30);
    306300      this.nameLabel.Name = "nameLabel";
    307301      this.nameLabel.Size = new System.Drawing.Size(38, 13);
     
    313307      this.nameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    314308                  | System.Windows.Forms.AnchorStyles.Right)));
    315       this.nameTextBox.Location = new System.Drawing.Point(73, 27);
     309      this.nameTextBox.Location = new System.Drawing.Point(70, 27);
    316310      this.nameTextBox.Name = "nameTextBox";
    317311      this.nameTextBox.Size = new System.Drawing.Size(501, 20);
     
    334328      this.isPrivilegedCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    335329      this.isPrivilegedCheckBox.AutoSize = true;
    336       this.isPrivilegedCheckBox.Location = new System.Drawing.Point(494, 55);
     330      this.isPrivilegedCheckBox.Location = new System.Drawing.Point(491, 53);
    337331      this.isPrivilegedCheckBox.Name = "isPrivilegedCheckBox";
    338       this.isPrivilegedCheckBox.Size = new System.Drawing.Size(80, 17);
     332      this.isPrivilegedCheckBox.Size = new System.Drawing.Size(72, 17);
    339333      this.isPrivilegedCheckBox.TabIndex = 26;
    340       this.isPrivilegedCheckBox.Text = "IsPrivileged";
     334      this.isPrivilegedCheckBox.Text = "Privileged";
    341335      this.toolTip.SetToolTip(this.isPrivilegedCheckBox, "If checked, the task will be executed in a privileged sandbox on the slave.");
    342336      this.isPrivilegedCheckBox.UseVisualStyleBackColor = true;
     
    348342      this.refreshAutomaticallyCheckBox.Location = new System.Drawing.Point(30, 5);
    349343      this.refreshAutomaticallyCheckBox.Name = "refreshAutomaticallyCheckBox";
    350       this.refreshAutomaticallyCheckBox.Size = new System.Drawing.Size(128, 17);
     344      this.refreshAutomaticallyCheckBox.Size = new System.Drawing.Size(127, 17);
    351345      this.refreshAutomaticallyCheckBox.TabIndex = 24;
    352       this.refreshAutomaticallyCheckBox.Text = "&Refresh Automatically";
     346      this.refreshAutomaticallyCheckBox.Text = "&Refresh automatically";
    353347      this.refreshAutomaticallyCheckBox.UseVisualStyleBackColor = true;
    354348      this.refreshAutomaticallyCheckBox.Validated += new System.EventHandler(this.refreshAutomaticallyCheckBox_Validated);
     
    368362      this.infoGroupBox.TabIndex = 25;
    369363      this.infoGroupBox.TabStop = false;
    370       this.infoGroupBox.Text = "Info";
     364      this.infoGroupBox.Text = "Tasks";
    371365      //
    372366      // finishedTextBox
     
    420414      this.jobsLabel.Location = new System.Drawing.Point(6, 19);
    421415      this.jobsLabel.Name = "jobsLabel";
    422       this.jobsLabel.Size = new System.Drawing.Size(32, 13);
     416      this.jobsLabel.Size = new System.Drawing.Size(46, 13);
    423417      this.jobsLabel.TabIndex = 0;
    424       this.jobsLabel.Text = "Jobs:";
     418      this.jobsLabel.Text = "Waiting:";
    425419      //
    426420      // RefreshableHiveExperimentView
     
    446440      this.Size = new System.Drawing.Size(717, 560);
    447441      this.tabControl.ResumeLayout(false);
    448       this.jobsTabPage.ResumeLayout(false);
     442      this.tasksTabPage.ResumeLayout(false);
     443      this.permissionTabPage.ResumeLayout(false);
    449444      this.stateTabPage.ResumeLayout(false);
    450       this.sharingTabPage.ResumeLayout(false);
    451445      this.logTabPage.ResumeLayout(false);
    452446      this.infoGroupBox.ResumeLayout(false);
     
    469463    private System.Windows.Forms.TabPage logTabPage;
    470464    private Core.Views.LogView logView;
    471     private System.Windows.Forms.TabPage jobsTabPage;
    472     private HiveTaskItemTreeView jobsTreeView;
     465    private System.Windows.Forms.TabPage tasksTabPage;
     466    private HeuristicLab.Clients.Hive.Views.ExperimentManager.HiveTaskItemTreeView jobsTreeView;
    473467    private System.Windows.Forms.Label nameLabel;
    474468    private System.Windows.Forms.TextBox nameTextBox;
     
    485479    private System.Windows.Forms.CheckBox isPrivilegedCheckBox;
    486480    private System.Windows.Forms.TabPage stateTabPage;
    487     private ViewHost stateLogViewHost;
    488     private System.Windows.Forms.TabPage sharingTabPage;
     481    private HeuristicLab.MainForm.WindowsForms.ViewHost stateLogViewHost;
     482    private System.Windows.Forms.TabPage permissionTabPage;
    489483    private HiveExperimentPermissionListView hiveExperimentPermissionListView;
    490484    private System.Windows.Forms.Button refreshPermissionsButton;
     485    private System.Windows.Forms.TabPage runsTabPage;
    491486
    492487  }
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.ExperimentManager/3.3/Views/RefreshableHiveExperimentView.cs

    r6743 r6791  
    4040  [View("Hive Experiment View")]
    4141  [Content(typeof(RefreshableJob), true)]
    42   public sealed partial class RefreshableHiveExperimentView : ItemView {
     42  public partial class RefreshableHiveExperimentView : HeuristicLab.Core.Views.ItemView {
    4343    private ProgressView progressView;
    4444
     
    8787      Content.Job.PropertyChanged += new PropertyChangedEventHandler(HiveExperiment_PropertyChanged);
    8888    }
    89    
     89
    9090    private void DeregisterHiveExperimentEvents() {
    9191      Content.Job.PropertyChanged -= new PropertyChangedEventHandler(HiveExperiment_PropertyChanged);
     
    253253      else {
    254254        if (Content != null) {
    255           jobsTextBox.Text = Content.Job.JobCount.ToString();
     255          jobsTextBox.Text = (Content.Job.JobCount - Content.Job.CalculatingCount - Content.Job.FinishedCount).ToString();
    256256          calculatingTextBox.Text = Content.Job.CalculatingCount.ToString();
    257257          finishedTextBox.Text = Content.Job.FinishedCount.ToString();
     
    291291
    292292    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;
    294294    }
    295295    #endregion
     
    413413
    414414    private void tabControl_SelectedIndexChanged(object sender, EventArgs e) {
    415       if (tabControl.SelectedTab == sharingTabPage) {
     415      if (tabControl.SelectedTab == permissionTabPage) {
    416416        if (!Content.IsSharable) {
    417417          MessageBox.Show("Unable to load tab. You have insufficient access privileges.");
    418           tabControl.SelectedTab = jobsTabPage;
     418          tabControl.SelectedTab = tasksTabPage;
    419419        }
    420420      }
Note: See TracChangeset for help on using the changeset viewer.