Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/13/11 20:45:08 (13 years ago)
Author:
ascheibe
Message:

#1233 fixed bug in PermissionView "bugfix"

File:
1 edited

Legend:

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

    r6924 r6925  
    2020#endregion
    2121
    22 using System.ComponentModel;
    2322using HeuristicLab.Clients.Hive.Views;
    2423using HeuristicLab.MainForm;
     
    6261    }
    6362
    64     #region Child Control Events
    65 
    66     private void usernameTextBox_Validating(object sender, CancelEventArgs e) {
    67       Content.GrantedUserName = usernameTextBox.Text;
     63    private void usernameTextBox_TextChanged(object sender, System.EventArgs e) {
     64      if (Content != null) {
     65        Content.GrantedUserName = usernameTextBox.Text;
     66      }
    6867    }
    6968
    70     private void permissionComboBox_Validating(object sender, CancelEventArgs e) {
    71       Content.Permission = (Permission)permissionComboBox.SelectedItem;
     69    private void permissionComboBox_SelectedValueChanged(object sender, System.EventArgs e) {
     70      if (Content != null) {
     71        Content.Permission = (Permission)permissionComboBox.SelectedItem;
     72      }
    7273    }
    73     #endregion
    7474  }
    7575}
Note: See TracChangeset for help on using the changeset viewer.