Beispiel #1
0
        private void processOrder(Order order)
        {
            DataRow_order row = (DataRow_order)DTS.t_my_takingPositions.FindByID(order.transactionid);

            if (row != null)
            {
                DTS.t_my_takingPositions.Remove_Row(row);
            }
            DTS.t_my_takingPositions.AcceptChanges();
            DTS.t_my_takingPositions.Add_Row(order.seccode, order.buysell, order.price, order.status, order.transactionid);
            DTS.t_my_takingPositions.AcceptChanges();
        }
Beispiel #2
0
        //--------------------------------------------------------------------------------
        public DataRow_order Add_Row(string security_code, string buysell, double price, string status, int transactionId)
        {
            DataRow_order row = (DataRow_order)NewRow();

            object[] aValues = new object[]
            {
                security_code, buysell, price, status, transactionId
            };
            row.ItemArray = aValues;
            Rows.Add(row);
            return(row);
        }
Beispiel #3
0
 //--------------------------------------------------------------------------------
 public void Remove_Row(DataRow_order row)
 {
     Rows.Remove(row);
 }
Beispiel #4
0
 //--------------------------------------------------------------------------------
 public void Add_Row(DataRow_order row)
 {
     Rows.Add(row);
 }