Exemplo n.º 1
0
        public void onChanged(string rowID, O2GRow rowData)
        {
            O2GTableType type = rowData.TableType;

            switch (type)
            {
            case O2GTableType.Offers:
                O2GOfferTableRow offers = (O2GOfferTableRow)(rowData);
                break;

            case O2GTableType.Accounts:
                O2GAccountTableRow account = (O2GAccountTableRow)(rowData);
                break;

            case O2GTableType.Trades:
                O2GTradeTableRow trade = (O2GTradeTableRow)(rowData);
                break;
            }
        }
Exemplo n.º 2
0
        public Trades(MainForm CurrentForm, O2GTableManager mTblMgr)
        {
            CreateTable();

            CurrentForm.PopulateTable(TradesTable);


            while (mTblMgr.getStatus() != O2GTableManagerStatus.TablesLoaded && mTblMgr.getStatus() != O2GTableManagerStatus.TablesLoadFailed)
            {
                Thread.Sleep(50);
            }
            O2GTradesTable   table    = (O2GTradesTable)mTblMgr.getTable(O2GTableType.Trades);
            TradesListener   listener = new TradesListener();
            O2GTradeTableRow row      = null;

            for (int i = 0; i < table.Count; i++)
            {
                DataRow CurrentRow = TradesTable.NewRow();
                TradesTable.Rows.Add(CurrentRow);
            }

            CurrentForm.GetTableData(table, listener, row, mTblMgr);
        }
Exemplo n.º 3
0
 public void onChanged(string rowID, O2GRow rowData)
 {
     O2GTradeTableRow trade = (O2GTradeTableRow)rowData;
 }