Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/22/11 15:28:01 (14 years ago)
Author:
ascheibe
Message:

#1233

  • some admin gui updates
  • HeuristicLab.Calendar is now HeuristicLab.ExtLibs/HeuristicLab.DayView Plugin
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/Administration/HiveAdministrationView.cs

    r5525 r5538  
    123123    }
    124124
    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;
    134129          txtName.Text = s.Name;
    135130          txtDetailsDescription.Text = s.Description;
     
    139134          txtOS.Text = s.OperatingSystem;
    140135          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;
    143138          txtName.Text = s.Name;
    144139          txtDetailsDescription.Text = s.Description;
     
    153148
    154149
    155 
    156150    #region Event Handlers
    157151    // TODO: Put event handlers here
Note: See TracChangeset for help on using the changeset viewer.