Changeset 6893 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Administrator/3.3/Views/SlaveView.cs
- Timestamp:
- 10/09/11 01:47:51 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Administrator/3.3/Views/SlaveView.cs
r6688 r6893 61 61 txtFreeMemory.Clear(); 62 62 txtId.Clear(); 63 txtHbIntervall.Clear(); 63 64 } else { 64 65 if (Content.GetType() == typeof(Slave)) { … … 66 67 Slave ct = (Slave)Content; 67 68 txtName.Text = ct.Name; 69 txtHbIntervall.Text = ct.HbInterval.ToString(); 68 70 txtCPU.Text = string.Format("{0} Cores @ {1} Mhz, Arch.: {2}", ct.Cores.ToString(), ct.CpuSpeed.ToString(), ct.CpuArchitecture.ToString()); 69 71 txtDetailsDescription.Text = ct.Description; … … 77 79 SlaveGroup ct = (SlaveGroup)Content; 78 80 txtName.Text = ct.Name; 81 txtHbIntervall.Text = ct.HbInterval.ToString(); 79 82 ShowSlaveUI(false); 80 83 } else { … … 113 116 } 114 117 } 118 119 private void txtHbIntervall_TextChanged(object sender, EventArgs e) { 120 if (Content != null) { 121 if (txtHbIntervall.Text.Length > 0) { 122 try { 123 int interval = int.Parse(txtHbIntervall.Text); 124 Content.HbInterval = interval; 125 } 126 catch (Exception ex) { 127 MessageBox.Show("Please enter a numeric value for the Heartbeat Interval.", "HeuristicLab Hive Administrator", MessageBoxButtons.OK, MessageBoxIcon.Error); 128 txtHbIntervall.Text = "0"; 129 } 130 } 131 } 132 } 115 133 } 116 134 }
Note: See TracChangeset
for help on using the changeset viewer.