Пример #1
0
 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;
 }
Пример #3
0
 //remove a lot from the yard queue
 public void RemoveLot(Lot lot)
 {
     this.lots.Remove(lot);
     OnYardChanged(lot, ChangeType.OUT);
 }
Пример #4
0
 //add a new lot to the yard
 public void AddLot(Lot lot)
 {
     this.lots.Add(lot);
     OnYardChanged(lot, ChangeType.IN);
 }
Пример #5
0
 //add a new lot to the yard
 public void AddLot(Lot lot)
 {
     this.lots.Add(lot);
     OnYardChanged(lot, ChangeType.IN);
 }
Пример #6
0
 //remove a lot from the yard queue
 public void RemoveLot(Lot lot)
 {
     this.lots.Remove(lot);
     OnYardChanged(lot, ChangeType.OUT);
 }
Пример #7
0
 public void RemoveLot(Lot lot)
 {
     this.orderedLots.Remove(lot);
     this.totalPrice -= lot.Price;
     OnPropertyChanged("Price");
 }
Пример #8
0
 public void AddLot(Lot lot)
 {
     this.orderedLots.Add(lot);
     this.totalPrice += lot.Price;
     OnPropertyChanged("Price");
 }
Пример #9
0
 public void RemoveLot(Lot lot)
 {
     this.orderedLots.Remove(lot);
     this.totalPrice -= lot.Price;
     OnPropertyChanged("Price");
 }
Пример #10
0
 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;
 }