- Timestamp:
- 03/19/12 21:15:33 (13 years ago)
- Location:
- branches/ClientUserManagement/HeuristicLab.Clients.Access/3.3/ServiceClients
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ClientUserManagement/HeuristicLab.Clients.Access/3.3/ServiceClients/AccessItem.cs
r7368 r7637 65 65 } 66 66 67 public void SetUnmodified() { 68 Modified = false; 69 } 70 67 71 protected AccessItem(AccessItem original, Cloner cloner) { 68 72 cloner.RegisterClonedObject(original, this); -
branches/ClientUserManagement/HeuristicLab.Clients.Access/3.3/ServiceClients/UserGroup.cs
r7436 r7637 20 20 #endregion 21 21 22 using System; 22 23 using System.Drawing; 24 using System.Runtime.Serialization; 23 25 using HeuristicLab.Common; 24 26 using HeuristicLab.Core; 25 27 namespace HeuristicLab.Clients.Access { 26 28 [Item("UserGroup", "A group.")] 27 public partial class UserGroup {29 public partial class UserGroup : IDisposable { 28 30 protected UserGroup(UserGroup original, Cloner cloner) 29 31 : base(original, cloner) { … … 35 37 } 36 38 37 public UserGroup() { } 39 public UserGroup() { 40 this.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(UserGroup_PropertyChanged); 41 } 42 43 [OnDeserialized] 44 private void RegisterNamePropertyChangedEvent(StreamingContext c) { 45 this.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(UserGroup_PropertyChanged); 46 } 47 48 void UserGroup_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e) { 49 //this is a workaround as we can't overide the Name property and fire directly 50 if (e.PropertyName == "Name") { 51 OnToStringChanged(); 52 } 53 } 38 54 39 55 public override IDeepCloneable Clone(Cloner cloner) { … … 44 60 return Name; 45 61 } 62 63 #region IDisposable Members 64 public void Dispose() { 65 this.PropertyChanged -= new System.ComponentModel.PropertyChangedEventHandler(UserGroup_PropertyChanged); 66 } 67 #endregion 46 68 } 47 69 }
Note: See TracChangeset
for help on using the changeset viewer.