Exemple #1
0
        private void setTrade(Trade currentTrade)
        {
            this.currentTrade = currentTrade;

            pictureBoxA.Image = this.currentTrade.getPictureA().getImage();
            pictureBoxB.Image = this.currentTrade.getPictureB().getImage();
        }
Exemple #2
0
 public void propose(Trade proposal)
 {
     tradebook.addTrade(proposal);
 }
Exemple #3
0
 public void addTrade(Trade newTrade)
 {
     book.Add(newTrade);
     TradeDAO.currentInstance.save(newTrade);
 }
Exemple #4
0
 public void updateTrade(Trade oldTrade)
 {
     int index = trades.IndexOf(oldTrade);
     if (index >= 0)
     {
         trades.RemoveAt(index);
         trades.Add(oldTrade);
     }
 }
Exemple #5
0
 public void saveTrade(Trade newTrade)
 {
     trades.Add(newTrade);
 }
Exemple #6
0
 public void update(Trade oldTrade)
 {
     Database.currentInstance.updateTrade(oldTrade);
 }
Exemple #7
0
 public void save(Trade newTrade)
 {
     Database.currentInstance.saveTrade(newTrade);
 }