Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/11/11 21:54:39 (13 years ago)
Author:
ascheibe
Message:

#1233 some minor improvements in the Slave UI and Administrator UI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ResourcesView.cs

    r6688 r6734  
    4949      updateScheduleControl.UpdateAction = new Action(UpdateSchedule);
    5050      updateSlaveGroup.UpdateAction = new Action(UpdateSlaveGroups);
    51     }
     51
     52      updateSlaveGroup.Update();
     53    }
     54
    5255
    5356    #region Register Content Events
     
    131134    protected override void SetEnabledStateOfControls() {
    132135      base.SetEnabledStateOfControls();
    133       // TODO: Put code here to enable or disable controls based on whether the Content is/not null or the view is ReadOnly
    134136    }
    135137
     
    293295    void ResetView() {
    294296      treeSlaveGroup.Nodes.Clear();
     297
    295298      if (slaveView.Content != null && slaveView.Content is SlaveGroup) {
    296299        slaveView.Content.PropertyChanged -= new System.ComponentModel.PropertyChangedEventHandler(SlaveViewContent_PropertyChanged);
     
    301304
    302305    private void UpdateSlaveGroups() {
    303       this.Invoke(new Action(ResetView));
    304       Content.Clear();
     306      if (this.InvokeRequired) {
     307        this.Invoke(new Action(ResetView));
     308      } else {
     309        ResetView();
     310      }
     311
    305312      IItemList<Resource> resources = new ItemList<Resource>();
    306313
Note: See TracChangeset for help on using the changeset viewer.