private void  HandleAccountUpdateMulti(AccountUpdateMultiMessage accountUpdateMultiMessage)
 {
     for (int i = 0; i < accountUpdatesMultiGrid.Rows.Count; i++)
     {
         if (accountUpdatesMultiGrid[2, i].Value.Equals(accountUpdateMultiMessage.Key) &&
             accountUpdatesMultiGrid[4, i].Value.Equals(accountUpdateMultiMessage.Currency == null ? "" : accountUpdateMultiMessage.Currency))
         {
             accountUpdatesMultiGrid[0, i].Value = accountUpdateMultiMessage.Account;
             accountUpdatesMultiGrid[1, i].Value = accountUpdateMultiMessage.ModelCode;
             accountUpdatesMultiGrid[3, i].Value = accountUpdateMultiMessage.Value;
             return;
         }
     }
     accountUpdatesMultiGrid.Rows.Add(1);
     accountUpdatesMultiGrid[0, accountUpdatesMultiGrid.Rows.Count - 1].Value = accountUpdateMultiMessage.Account;
     accountUpdatesMultiGrid[1, accountUpdatesMultiGrid.Rows.Count - 1].Value = accountUpdateMultiMessage.ModelCode;
     accountUpdatesMultiGrid[2, accountUpdatesMultiGrid.Rows.Count - 1].Value = accountUpdateMultiMessage.Key;
     accountUpdatesMultiGrid[3, accountUpdatesMultiGrid.Rows.Count - 1].Value = accountUpdateMultiMessage.Value;
     accountUpdatesMultiGrid[4, accountUpdatesMultiGrid.Rows.Count - 1].Value = accountUpdateMultiMessage.Currency == null ? "" : accountUpdateMultiMessage.Currency;
 }
 public void  HandleAccountUpdateMulti(AccountUpdateMultiMessage accountUpdateMultiMessage)
 {
     for (int i = 0; i < AccountUpdatesMultiGrid.Rows.Count; i++)
     {
         if (AccountUpdatesMultiGrid[2, i].Value.Equals(accountUpdateMultiMessage.Key) &&
             AccountUpdatesMultiGrid[4, i].Value.Equals(accountUpdateMultiMessage.Currency == null ? "" : accountUpdateMultiMessage.Currency))
         {
             AccountUpdatesMultiGrid[0, i].Value = accountUpdateMultiMessage.Account;
             AccountUpdatesMultiGrid[1, i].Value = accountUpdateMultiMessage.ModelCode;
             AccountUpdatesMultiGrid[3, i].Value = accountUpdateMultiMessage.Value;
             return;
         }
     }
     AccountUpdatesMultiGrid.Rows.Add(1);
     AccountUpdatesMultiGrid[0, AccountUpdatesMultiGrid.Rows.Count - 1].Value = accountUpdateMultiMessage.Account;
     AccountUpdatesMultiGrid[1, AccountUpdatesMultiGrid.Rows.Count - 1].Value = accountUpdateMultiMessage.ModelCode;
     AccountUpdatesMultiGrid[2, AccountUpdatesMultiGrid.Rows.Count - 1].Value = accountUpdateMultiMessage.Key;
     AccountUpdatesMultiGrid[3, AccountUpdatesMultiGrid.Rows.Count - 1].Value = accountUpdateMultiMessage.Value;
     AccountUpdatesMultiGrid[4, AccountUpdatesMultiGrid.Rows.Count - 1].Value = accountUpdateMultiMessage.Currency == null ? "" : accountUpdateMultiMessage.Currency;
 }