Changeset 5538 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/Administration/HiveAdministrationView.cs
- Timestamp:
- 02/22/11 15:28:01 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/Administration/HiveAdministrationView.cs
r5525 r5538 123 123 } 124 124 125 private void treeSlaveGroup_Click(object sender, System.EventArgs e) { 126 127 } 128 129 private void treeSlaveGroup_MouseClick(object sender, MouseEventArgs e) { 130 if (treeSlaveGroup.SelectedNode != null && 131 treeSlaveGroup.SelectedNode.Tag != null) { 132 if (treeSlaveGroup.SelectedNode.Tag.GetType() == typeof(Slave)) { 133 Slave s = treeSlaveGroup.SelectedNode.Tag as Slave; 125 private void treeSlaveGroup_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { 126 if (e.Node != null) { 127 if (e.Node.Tag.GetType() == typeof(Slave)) { 128 Slave s = e.Node.Tag as Slave; 134 129 txtName.Text = s.Name; 135 130 txtDetailsDescription.Text = s.Description; … … 139 134 txtOS.Text = s.OperatingSystem; 140 135 txtSlaveState.Text = s.SlaveState.ToString(); 141 } else if ( treeSlaveGroup.SelectedNode.Tag.GetType() == typeof(SlaveGroup)) {142 SlaveGroup s = treeSlaveGroup.SelectedNode.Tag as SlaveGroup;136 } else if (e.Node.Tag.GetType() == typeof(SlaveGroup)) { 137 SlaveGroup s = e.Node.Tag as SlaveGroup; 143 138 txtName.Text = s.Name; 144 139 txtDetailsDescription.Text = s.Description; … … 153 148 154 149 155 156 150 #region Event Handlers 157 151 // TODO: Put event handlers here
Note: See TracChangeset
for help on using the changeset viewer.