Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/25/09 18:02:53 (15 years ago)
Author:
aleitner
Message:

check if there are groups or jobs (#600)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.Console/3.2/HiveServerManagementConsole.cs

    r2109 r2110  
    216216      changes.Clear();
    217217
    218       #region Job
    219218      ResponseList<Job> jobsOld = jobs;
    220219      try {
     
    234233      }
    235234
    236       #endregion
    237235    }
    238236
     
    310308        ResponseList<ClientGroup> clientGroups = ClientManager.GetAllClientGroups();
    311309
    312         foreach (ClientGroup cg in clientGroups.List) {
    313           AddClientOrGroup(cg, null);
    314         }
    315 
    316         if (currentGroupNode != null) {
    317           lvClientControl.Items.Clear();
    318           lvClientControl.Groups.Clear();
    319           AddGroupsToListView(currentGroupNode);
    320         }
    321         tvClientControl.ExpandAll();
     310        if (clientGroups != null && clientGroups.List != null) {
     311          foreach (ClientGroup cg in clientGroups.List) {
     312            AddClientOrGroup(cg, null);
     313          }
     314
     315          if (currentGroupNode != null) {
     316            lvClientControl.Items.Clear();
     317            lvClientControl.Groups.Clear();
     318            AddGroupsToListView(currentGroupNode);
     319          }
     320          tvClientControl.ExpandAll();
     321        }
    322322
    323323      }
     
    514514    }
    515515
    516 
    517516    private void RefreshForm() {
    518517      foreach (Changes change in changes) {
Note: See TracChangeset for help on using the changeset viewer.