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