/// <summary>
        /// Constructor
        /// </summary>
        public AddEditSupplierViewModel()
        {
            if (SelectedSupplier == null) SelectedSupplier = new DispatchSupplier();
            if (Manager == null) Manager = new DispatchSupplierUser();
            RegisterCommands();
            _countCityControl = 1;
            EnableDisableSave(false);
            InitializeCitiesOfServiceControl();

        }
示例#2
0
     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;
     }
示例#3
0
 public DispatchSupplierUserValidator(DispatchSupplierUser user)
 {
     _supplierUser = user;
 }