private void ConvertTable(TableJSON tableFirst) { if (DataWallet.TryFromTable(tableFirst, Wallet, out DataWallet outW)) { Console.WriteLine($"TableWallet Amount: {outW.Amount}"); Wallet = outW; } else if (DataMargin.TryFromTable(tableFirst, Margin, out DataMargin outM)) { Console.WriteLine($"TableMargin Amount: {outM.Amount}"); Margin = outM; } else if (Position.TryFromTable(tableFirst, Positions, out ObservableCollection <Position> outP)) { //Console.WriteLine($"TablePositions Positions.Data.Length: {table.Data.Length}"); //Console.WriteLine("************************************\r\n" + e.Data + "\r\n************************************"); Positions = outP; OnPropertyChanged("ChangedPositions"); } else if (TableOrder.TryFromTable(tableFirst, Orders, out ObservableCollection <TableOrder> outO)) { //Console.WriteLine($"TableOrders Orders.Data.Length: {table.Data.Length}"); Orders = outO; } else { } }