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

        }
Exemplo n.º 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;
     }
Exemplo n.º 3
0
 public DispatchSupplierUserValidator(DispatchSupplierUser user)
 {
     _supplierUser = user;
 }