예제 #1
0
 public OrderDialog(OrderManager orderManager)
 {
     InitializeComponent();
     InitialiseDropDowns();
     this.orderManager = orderManager;
     marginDialog = new MarginDialog();
 }
예제 #2
0
        public OrderDialog(OrderManager orderManager)
        {
            InitializeComponent();
            InitialiseDropDowns();

            this.orderManager = orderManager;
            marginDialog      = new MarginDialog();
            contractSearchControl1.IBClient   = orderManager.IBClient;
            conditionList.CellFormatting     += conditionList_CellFormatting;
            conditionList.DataSource          = orderBindingSource;
            conditionList.AutoGenerateColumns = false;
            conditionList.CellParsing        += conditionList_CellParsing;
            orderBindingSource.DataSource     = new List <OrderCondition>();
            cancelOrder.SelectedIndex         = 0;
        }