- Timestamp:
- 06/18/12 22:26:00 (13 years ago)
- Location:
- trunk/sources/HeuristicLab.Clients.Access/3.3/ServiceClients
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Access/3.3/ServiceClients/LightweightUser.cs
r8042 r8044 33 33 this.UserName = original.UserName; 34 34 this.EMail = original.EMail; 35 this.Groups = original.Groups .Select(x => (UserGroup)x.Clone(cloner)).ToList();36 this.Roles = original.Roles .Select(x => (Role)x.Clone(cloner)).ToList();35 this.Groups = original.Groups != null ? original.Groups.Select(x => (UserGroup)x.Clone(cloner)).ToList() : null; 36 this.Roles = original.Roles != null ? original.Roles.Select(x => (Role)x.Clone(cloner)).ToList() : null; 37 37 } 38 38 … … 41 41 } 42 42 43 public LightweightUser() { }43 public LightweightUser() : base() { } 44 44 45 45 public override IDeepCloneable Clone(Cloner cloner) { … … 48 48 49 49 public override string ToString() { 50 return UserName + " (" + FullName + ")";50 return (UserName != null && FullName != null) ? UserName + " (" + FullName + ")" : string.Empty; 51 51 } 52 52 } -
trunk/sources/HeuristicLab.Clients.Access/3.3/ServiceClients/Resource.cs
r8042 r8044 37 37 } 38 38 39 public Resource() { }39 public Resource() : base() { } 40 40 41 41 public override IDeepCloneable Clone(Cloner cloner) { -
trunk/sources/HeuristicLab.Clients.Access/3.3/ServiceClients/Role.cs
r8042 r8044 35 35 } 36 36 37 public Role() { }37 public Role() : base() { } 38 38 39 39 public override IDeepCloneable Clone(Cloner cloner) { … … 42 42 43 43 public override string ToString() { 44 return Name ;44 return Name != null ? Name : string.Empty; 45 45 } 46 46 47 47 public override bool Equals(object obj) { 48 return ((Role)obj).Name.Equals(this.Name);48 return Name != null ? ((Role)obj).Name.Equals(this.Name) : false; 49 49 } 50 50 51 51 public override int GetHashCode() { 52 return Name .GetHashCode();52 return Name != null ? Name.GetHashCode() : string.Empty.GetHashCode(); 53 53 } 54 54 } -
trunk/sources/HeuristicLab.Clients.Access/3.3/ServiceClients/UserGroup.cs
r8042 r8044 37 37 } 38 38 39 public UserGroup() { 39 public UserGroup() 40 : base() { 40 41 this.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(UserGroup_PropertyChanged); 41 42 } -
trunk/sources/HeuristicLab.Clients.Access/3.3/ServiceClients/UserGroupBase.cs
r8042 r8044 28 28 protected UserGroupBase(UserGroupBase original, Cloner cloner) 29 29 : base(original, cloner) { 30 Id = original.Id;30 this.Id = original.Id; 31 31 } 32 32 33 public UserGroupBase() { }33 public UserGroupBase() : base() { } 34 34 35 35 public override IDeepCloneable Clone(Cloner cloner) {
Note: See TracChangeset
for help on using the changeset viewer.