protected void OnYardChanged(Lot lot, ChangeType type) { if (YardChanged != null) { YardChangedEventArgs args = new YardChangedEventArgs(lot, type); YardChanged(this, args); } }
public YardChangedEventArgs(Lot lot, ChangeType type) { this.lot = lot; this.type = type; }
//remove a lot from the yard queue public void RemoveLot(Lot lot) { this.lots.Remove(lot); OnYardChanged(lot, ChangeType.OUT); }
//add a new lot to the yard public void AddLot(Lot lot) { this.lots.Add(lot); OnYardChanged(lot, ChangeType.IN); }
//add a new lot to the yard public void AddLot(Lot lot) { this.lots.Add(lot); OnYardChanged(lot, ChangeType.IN); }
//remove a lot from the yard queue public void RemoveLot(Lot lot) { this.lots.Remove(lot); OnYardChanged(lot, ChangeType.OUT); }
public void RemoveLot(Lot lot) { this.orderedLots.Remove(lot); this.totalPrice -= lot.Price; OnPropertyChanged("Price"); }
public void AddLot(Lot lot) { this.orderedLots.Add(lot); this.totalPrice += lot.Price; OnPropertyChanged("Price"); }
public void RemoveLot(Lot lot) { this.orderedLots.Remove(lot); this.totalPrice -= lot.Price; OnPropertyChanged("Price"); }
public void AddLot(Lot lot) { this.orderedLots.Add(lot); this.totalPrice += lot.Price; OnPropertyChanged("Price"); }
public YardChangedEventArgs(Lot lot, ChangeType type) { this.lot = lot; this.type = type; }