Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/21/12 15:12:15 (13 years ago)
Author:
jkarder
Message:

#1854:

  • integrated marker attribute (IsDisposable) into the Hive components
  • adjusted database scheme
  • extended administration user interface
Location:
trunk/sources/HeuristicLab.Clients.Hive.Administrator/3.3/Views
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Hive.Administrator/3.3/Views/SlaveView.Designer.cs

    r7259 r7857  
    6565      this.label3 = new System.Windows.Forms.Label();
    6666      this.txtHbIntervall = new System.Windows.Forms.TextBox();
     67      this.cbxDisposable = new System.Windows.Forms.CheckBox();
     68      this.label4 = new System.Windows.Forms.Label();
    6769      this.SuspendLayout();
    6870      //
    6971      // txtSlaveState
    7072      //
    71       this.txtSlaveState.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    72                   | System.Windows.Forms.AnchorStyles.Right)));
     73      this.txtSlaveState.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
     74            | System.Windows.Forms.AnchorStyles.Right)));
    7375      this.txtSlaveState.Enabled = false;
    7476      this.txtSlaveState.Location = new System.Drawing.Point(146, 216);
     
    7981      // txtOS
    8082      //
    81       this.txtOS.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    82                   | System.Windows.Forms.AnchorStyles.Right)));
     83      this.txtOS.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
     84            | System.Windows.Forms.AnchorStyles.Right)));
    8385      this.txtOS.Enabled = false;
    8486      this.txtOS.Location = new System.Drawing.Point(146, 190);
     
    107109      // txtDetailsDescription
    108110      //
    109       this.txtDetailsDescription.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    110                   | System.Windows.Forms.AnchorStyles.Right)));
     111      this.txtDetailsDescription.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
     112            | System.Windows.Forms.AnchorStyles.Right)));
    111113      this.txtDetailsDescription.Enabled = false;
    112114      this.txtDetailsDescription.Location = new System.Drawing.Point(146, 86);
     
    126128      // txtName
    127129      //
    128       this.txtName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    129                   | System.Windows.Forms.AnchorStyles.Right)));
     130      this.txtName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
     131            | System.Windows.Forms.AnchorStyles.Right)));
    130132      this.txtName.Location = new System.Drawing.Point(146, 8);
    131133      this.txtName.Name = "txtName";
     
    136138      // txtCPU
    137139      //
    138       this.txtCPU.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    139                   | System.Windows.Forms.AnchorStyles.Right)));
     140      this.txtCPU.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
     141            | System.Windows.Forms.AnchorStyles.Right)));
    140142      this.txtCPU.Enabled = false;
    141143      this.txtCPU.Location = new System.Drawing.Point(146, 112);
     
    146148      // txtMemory
    147149      //
    148       this.txtMemory.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    149                   | System.Windows.Forms.AnchorStyles.Right)));
     150      this.txtMemory.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
     151            | System.Windows.Forms.AnchorStyles.Right)));
    150152      this.txtMemory.Enabled = false;
    151153      this.txtMemory.Location = new System.Drawing.Point(146, 138);
     
    156158      // txtLastHeartbeat
    157159      //
    158       this.txtLastHeartbeat.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    159                   | System.Windows.Forms.AnchorStyles.Right)));
     160      this.txtLastHeartbeat.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
     161            | System.Windows.Forms.AnchorStyles.Right)));
    160162      this.txtLastHeartbeat.Enabled = false;
    161163      this.txtLastHeartbeat.Location = new System.Drawing.Point(146, 242);
     
    211213      // txtFreeMemory
    212214      //
    213       this.txtFreeMemory.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    214                   | System.Windows.Forms.AnchorStyles.Right)));
     215      this.txtFreeMemory.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
     216            | System.Windows.Forms.AnchorStyles.Right)));
    215217      this.txtFreeMemory.Enabled = false;
    216218      this.txtFreeMemory.Location = new System.Drawing.Point(146, 164);
     
    221223      // txtId
    222224      //
    223       this.txtId.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    224                   | System.Windows.Forms.AnchorStyles.Right)));
     225      this.txtId.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
     226            | System.Windows.Forms.AnchorStyles.Right)));
    225227      this.txtId.Enabled = false;
    226228      this.txtId.Location = new System.Drawing.Point(146, 60);
     
    249251      // txtHbIntervall
    250252      //
    251       this.txtHbIntervall.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    252                   | System.Windows.Forms.AnchorStyles.Right)));
     253      this.txtHbIntervall.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
     254            | System.Windows.Forms.AnchorStyles.Right)));
    253255      this.txtHbIntervall.Location = new System.Drawing.Point(146, 34);
    254256      this.txtHbIntervall.Name = "txtHbIntervall";
     
    257259      this.txtHbIntervall.TextChanged += new System.EventHandler(this.txtHbIntervall_TextChanged);
    258260      //
     261      // cbxDisposable
     262      //
     263      this.cbxDisposable.AutoSize = true;
     264      this.cbxDisposable.Location = new System.Drawing.Point(146, 268);
     265      this.cbxDisposable.Name = "cbxDisposable";
     266      this.cbxDisposable.Size = new System.Drawing.Size(15, 14);
     267      this.cbxDisposable.TabIndex = 34;
     268      this.cbxDisposable.UseVisualStyleBackColor = true;
     269      this.cbxDisposable.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
     270      //
     271      // label4
     272      //
     273      this.label4.AutoSize = true;
     274      this.label4.Location = new System.Drawing.Point(3, 269);
     275      this.label4.Name = "label4";
     276      this.label4.Size = new System.Drawing.Size(62, 13);
     277      this.label4.TabIndex = 35;
     278      this.label4.Text = "Disposable:";
     279      //
    259280      // SlaveView
    260281      //
    261282      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    262283      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     284      this.Controls.Add(this.label4);
     285      this.Controls.Add(this.cbxDisposable);
    263286      this.Controls.Add(this.txtHbIntervall);
    264287      this.Controls.Add(this.label3);
     
    282305      this.Controls.Add(this.label9);
    283306      this.Name = "SlaveView";
    284       this.Size = new System.Drawing.Size(539, 267);
     307      this.Size = new System.Drawing.Size(539, 285);
    285308      this.ResumeLayout(false);
    286309      this.PerformLayout();
     
    310333    private System.Windows.Forms.Label label3;
    311334    private System.Windows.Forms.TextBox txtHbIntervall;
     335    private System.Windows.Forms.CheckBox cbxDisposable;
     336    private System.Windows.Forms.Label label4;
    312337  }
    313338}
  • trunk/sources/HeuristicLab.Clients.Hive.Administrator/3.3/Views/SlaveView.cs

    r7259 r7857  
    6262        txtId.Clear();
    6363        txtHbIntervall.Clear();
     64        cbxDisposable.Checked = false;
    6465      } else {
    6566        if (Content.GetType() == typeof(Slave)) {
     
    6869          txtName.Text = ct.Name;
    6970          txtHbIntervall.Text = ct.HbInterval.ToString();
     71          cbxDisposable.Checked = ct.IsDisposable;
    7072          txtCPU.Text = string.Format("{0} Cores @ {1} Mhz, Arch.: {2}", ct.Cores.ToString(), ct.CpuSpeed.ToString(), ct.CpuArchitecture.ToString());
    7173          txtDetailsDescription.Text = ct.Description;
     
    8890
    8991    private void ShowSlaveUI(bool show) {
     92      label1.Visible = show;
    9093      label2.Visible = show;
    91       label1.Visible = show;
     94      label4.Visible = show;
    9295      label10.Visible = show;
    9396      label11.Visible = show;
     
    105108      txtId.Visible = show;
    106109      txtName.Enabled = !show;
     110      cbxDisposable.Visible = show;
    107111    }
    108112
     
    131135      }
    132136    }
     137
     138    private void checkBox1_CheckedChanged(object sender, EventArgs e) {
     139      if (Content != null) {
     140        ((Slave)Content).IsDisposable = cbxDisposable.Checked;
     141      }
     142    }
    133143  }
    134144}
Note: See TracChangeset for help on using the changeset viewer.