Inheritance: System.Windows.Forms.DataGridViewRow
Ejemplo n.º 1
0
 private void UpdateStatus(OrderViewItem item)
 {
     try
     {
         Order order = item.Order;
         switch (order.Status)
         {
             case OrderStatus.Rejected:
                 this.workingOrders.Remove((object)order);
                 this.rejectedOrders.Add((object)order, (object)item);
                 break;
             case OrderStatus.Filled:
                 this.workingOrders.Remove((object)order);
                 this.filledOrders.Add((object)order, (object)item);
                 break;
             case OrderStatus.Cancelled:
                 this.workingOrders.Remove((object)order);
                 this.cancelledOrders.Add((object)order, (object)item);
                 break;
             default:
                 this.workingOrders.Add((object)order, (object)item);
                 break;
         }
     }
     catch
     {
     }
 }
Ejemplo n.º 2
0
 private void AddOrder(Order order)
 {
     OrderViewItem orderViewItem = new OrderViewItem(order);
     this.allOrders.Add((object)order, (object)orderViewItem);
 }