public OrderDialog(OrderManager orderManager) { InitializeComponent(); InitialiseDropDowns(); this.orderManager = orderManager; marginDialog = new MarginDialog(); }
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; }