private void AddRow(object state) { try { Console.WriteLine(); Console.Write("AddRow"); RowModel newRow = _view.AddRow(); _context.Clients.All.addRow(newRow); } catch (Exception e) { Console.WriteLine(e); } }
private void DeleteRow(object state) { try { Console.WriteLine(); Console.Write("DeleteRow"); RowModel deleteRow = _view.DeleteRow(); _context.Clients.All.deleteRow(deleteRow); } catch (Exception e) { Console.WriteLine(e); } }
public RowModel AddRow() { var guid = Guid.NewGuid().ToString(); RowModel newRow = new RowModel(guid, new object[] { _secMaster[_random.Next(0, _secMaster.Count)], _random.Next(11, 550) * 100, _random.Next(10, 5000) / 100m, "USD", "USA" }); RowLookup.TryAdd(guid.ToString(), newRow); return(newRow); }