/// <summary> /// Constructor /// </summary> public AddEditSupplierViewModel() { if (SelectedSupplier == null) SelectedSupplier = new DispatchSupplier(); if (Manager == null) Manager = new DispatchSupplierUser(); RegisterCommands(); _countCityControl = 1; EnableDisableSave(false); InitializeCitiesOfServiceControl(); }
public bool Equals(DispatchSupplierUser other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; if (other.Id == 0 && Id == 0) return false; else return other.Id == Id; }
public DispatchSupplierUserValidator(DispatchSupplierUser user) { _supplierUser = user; }