public void Update(TransaqMoneyPosition tmpNew)
 {
     if (tmpNew.Asset != string.Empty)
     {
         this.Asset = tmpNew.Asset;
     }
     if (tmpNew.Client != string.Empty)
     {
         this.Client = tmpNew.Client;
     }
     if (tmpNew.ShortName != string.Empty)
     {
         this.ShortName = tmpNew.ShortName;
     }
     if (tmpNew.SaldoIn != string.Empty)
     {
         this.SaldoIn = tmpNew.SaldoIn;
     }
     if (tmpNew.Bought != string.Empty)
     {
         this.Bought = tmpNew.Bought;
     }
     if (tmpNew.Sold != string.Empty)
     {
         this.Sold = tmpNew.Sold;
     }
     if (tmpNew.Saldo != string.Empty)
     {
         this.Saldo = tmpNew.Saldo;
     }
     if (tmpNew.OrdBuy != string.Empty)
     {
         this.OrdBuy = tmpNew.OrdBuy;
     }
     if (tmpNew.OrdBuyCond != string.Empty)
     {
         this.OrdBuyCond = tmpNew.OrdBuyCond;
     }
     if (!(tmpNew.Comission != string.Empty))
     {
         return;
     }
     this.Comission = tmpNew.Comission;
 }
示例#2
0
 public void Update(TransaqMoneyPosition tmpNew)
 {
   if (tmpNew.Asset != string.Empty)
     this.Asset = tmpNew.Asset;
   if (tmpNew.Client != string.Empty)
     this.Client = tmpNew.Client;
   if (tmpNew.ShortName != string.Empty)
     this.ShortName = tmpNew.ShortName;
   if (tmpNew.SaldoIn != string.Empty)
     this.SaldoIn = tmpNew.SaldoIn;
   if (tmpNew.Bought != string.Empty)
     this.Bought = tmpNew.Bought;
   if (tmpNew.Sold != string.Empty)
     this.Sold = tmpNew.Sold;
   if (tmpNew.Saldo != string.Empty)
     this.Saldo = tmpNew.Saldo;
   if (tmpNew.OrdBuy != string.Empty)
     this.OrdBuy = tmpNew.OrdBuy;
   if (tmpNew.OrdBuyCond != string.Empty)
     this.OrdBuyCond = tmpNew.OrdBuyCond;
   if (!(tmpNew.Comission != string.Empty))
     return;
   this.Comission = tmpNew.Comission;
 }