Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7250


Ignore:
Timestamp:
12/30/11 18:40:17 (13 years ago)
Author:
ascheibe
Message:

#1579 implemented missing SetEnabledStateOfControls methods in admin ui

Location:
trunk/sources/HeuristicLab.Clients.Hive.Administrator/3.3/Views
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ResourcesView.cs

    r7249 r7250  
    170170    protected override void SetEnabledStateOfControls() {
    171171      base.SetEnabledStateOfControls();
     172      if (Content == null) {
     173        btnAddGroup.Enabled = false;
     174        btnRemoveGroup.Enabled = false;
     175        btnSave.Enabled = false;
     176      } else {
     177        btnAddGroup.Enabled = true;
     178        btnRemoveGroup.Enabled = true;
     179        btnSave.Enabled = true;
     180      }
    172181    }
    173182
  • trunk/sources/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ScheduleView.cs

    r7152 r7250  
    228228    protected override void SetEnabledStateOfControls() {
    229229      base.SetEnabledStateOfControls();
     230      if (Content == null) {
     231        btnSaveCal.Enabled = false;
     232      } else {
     233        btnSaveCal.Enabled = true;
     234      }
    230235    }
    231236
Note: See TracChangeset for help on using the changeset viewer.