public ContractManager(IBClient ibClient, TextBox fundamentalsOutput, DataGridView contractDetailsGrid) { IbClient = ibClient; Fundamentals = fundamentalsOutput; ContractDetailsGrid = contractDetailsGrid; comboContractResults = new ComboContractResults(); }
public void HandleContractDataEndMessage(ContractDetailsEndMessage contractDetailsEndMessage) { if (IsComboLegRequest) { ComboContractResults.Show(); } contractRequestActive = false; IsComboLegRequest = false; }
public void UpdateUI(ContractDetailsMessage message) { if (IsComboLegRequest) { ComboContractResults.UpdateUI(message); } else { HandleContractMessage(message); } }
public ContractManager(IBClient ibClient, TextBox fundamentalsOutput, DataGridView contractDetailsGrid, DataGridView bondContractDetailsGrid, ComboBox comboBoxMarketRuleId, DataGridView dataGridViewMarketRule, Label labelMarketRuleIdRes) { IbClient = ibClient; Fundamentals = fundamentalsOutput; ContractDetailsGrid = contractDetailsGrid; BondContractDetailsGrid = bondContractDetailsGrid; comboContractResults = new ComboContractResults(); ComboBoxMarketRuleId = comboBoxMarketRuleId; DataGridViewMarketRule = dataGridViewMarketRule; LabelMarketRuleIdRes = labelMarketRuleIdRes; }