Changeset 6464 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Administration/3.4/Views/SlaveView.cs
- Timestamp:
- 06/21/11 17:29:56 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Administration/3.4/Views/SlaveView.cs
r6373 r6464 66 66 Slave ct = (Slave)Content; 67 67 txtName.Text = ct.Name; 68 txtCPU.Text = ct.Cores.ToString() + " Cores @ " + ct.CpuSpeed.ToString() + " Mhz, Arch.: " + ct.CpuArchitecture.ToString();68 txtCPU.Text = string.Format("{0} Cores @ {1} Mhz, Arch.: {2}", ct.Cores.ToString(), ct.CpuSpeed.ToString(), ct.CpuArchitecture.ToString()); 69 69 txtDetailsDescription.Text = ct.Description; 70 70 txtMemory.Text = ct.Memory.ToString(); … … 78 78 txtName.Text = ct.Name; 79 79 ShowSlaveUI(false); 80 } else 80 } else { 81 81 throw new Exception("Unknown Resource in SlaveView"); 82 82 } 83 83 } 84 }85 86 void txtName_TextChanged(object sender, EventArgs e) {87 throw new NotImplementedException();88 84 } 89 85 … … 105 101 txtFreeMemory.Visible = show; 106 102 txtId.Visible = show; 103 txtName.Enabled = !show; 107 104 } 108 105 … … 111 108 } 112 109 113 private void txtName_TextChanged _1(object sender, EventArgs e) {110 private void txtName_TextChanged(object sender, EventArgs e) { 114 111 if (Content != null && Content is SlaveGroup) { 115 112 Content.Name = txtName.Text;
Note: See TracChangeset
for help on using the changeset viewer.