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