private void AddAttribute() { AcmaSchemaAttributeViewModel vm = this.AllowedUniqueAllocationAttributes.FirstOrDefault(t => t.IsSelected); if (vm != null) { this.UniqueAllocationAttributes.Add(vm.Model); this.AllowedUniqueAllocationAttributes.Remove(vm.Model); } }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj is AcmaSchemaAttributeViewModel) { AcmaSchemaAttributeViewModel otherAttribute = (AcmaSchemaAttributeViewModel)obj; if (this.Model == otherAttribute.Model) { return(true); } } return(base.Equals(obj)); }