Changeset 7982 for branches/ClientUserManagement/HeuristicLab.Clients.Access.Views/3.3/UserViews/LightweightUserInformationView.cs
- Timestamp:
- 06/11/12 14:29:26 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ClientUserManagement/HeuristicLab.Clients.Access.Views/3.3/UserViews/LightweightUserInformationView.cs
r7942 r7982 20 20 #endregion 21 21 22 using System; 22 23 using System.Windows.Forms; 23 24 using HeuristicLab.MainForm; … … 47 48 userNameTextBox.Clear(); 48 49 fullNameTextBox.Clear(); 50 emailTextBox.Clear(); 49 51 } else { 50 52 userNameTextBox.Text = Content.UserName; 51 53 fullNameTextBox.Text = Content.FullName; 54 emailTextBox.Text = Content.EMail; 52 55 53 56 foreach (Role r in Content.Roles) … … 89 92 return listViewItem; 90 93 } 94 95 private void fullNameTextBox_TextChanged(object sender, System.EventArgs e) { 96 if (UserInformation.Instance.User.FullName != fullNameTextBox.Text) { 97 UserInformation.Instance.User.FullName = fullNameTextBox.Text; 98 OnUserInformationChanged(); 99 } 100 } 101 102 private void emailTextBox_TextChanged(object sender, System.EventArgs e) { 103 if (UserInformation.Instance.User.EMail != emailTextBox.Text) { 104 UserInformation.Instance.User.EMail = emailTextBox.Text; 105 OnUserInformationChanged(); 106 } 107 } 108 109 #region Events 110 public event EventHandler UserInformationChanged; 111 private void OnUserInformationChanged() { 112 EventHandler handler = UserInformationChanged; 113 if (handler != null) handler(this, EventArgs.Empty); 114 } 115 #endregion 91 116 } 92 117 }
Note: See TracChangeset
for help on using the changeset viewer.