public virtual void AddSniper(SniperSnapshot sniperSnapshot) { Rows.Add(new object[] { sniperSnapshot.ItemId, sniperSnapshot.LastBid, sniperSnapshot.LastPrice, sniperSnapshot.State }); }
public virtual void SniperStateChanged(SniperSnapshot sniperSnapshot) { foreach (DataRow row in Rows) { if (row[0].ToString() == sniperSnapshot.ItemId) { row[(int)Column.LAST_BID] = sniperSnapshot.LastBid; row[(int)Column.LAST_PRICE] = sniperSnapshot.LastPrice; row[(int)Column.SNIPER_STATUS] = sniperSnapshot.State.ToString(); return; } } throw new Exception("Unknown auction id"); }