public OrderViewModule() { this._order = new Services.Order(); this._order.Name = "empty"; this._order.Age = 0; this._order.Quantity = 0; this._order.Price = 0; this.InitialData(); }
public OrderPresentationModel(Services.Order order) { _order = order; //TODO: 01 - Each Order defines a Save command. this.SaveOrderCommand = new DelegateCommand <object>(this.Save, this.CanSave); // Track all property changes so we can validate. this.PropertyChanged += this.OnPropertyChanged; this.Validate(); }
public OrderViewModel(Services.Order order) { _order = order; //TODO: 01 - Each Order defines a Save command. this.SaveOrderCommand = new DelegateCommand<object>( this.Save, this.CanSave ); // Track all property changes so we can validate. this.PropertyChanged += this.OnPropertyChanged; this.Validate(); }
public System.Threading.Tasks.Task <string> PlaceAsync(Services.Order order) { return(base.Channel.PlaceAsync(order)); }
public OrderViewModule(Services.Order od) { this._order = od; this.InitialData(); }