예제 #1
0
 public ContractManager(IBClient ibClient, TextBox fundamentalsOutput, DataGridView contractDetailsGrid)
 {
     IbClient             = ibClient;
     Fundamentals         = fundamentalsOutput;
     ContractDetailsGrid  = contractDetailsGrid;
     comboContractResults = new ComboContractResults();
 }
예제 #2
0
        public ContractManager(IBClient ibClient, TextBox fundamentalsOutput, DataGridView contractDetailsGrid)
        {
            IbClient = ibClient;
            Fundamentals = fundamentalsOutput;
            ContractDetailsGrid = contractDetailsGrid;
            comboContractResults = new ComboContractResults();

        }
예제 #3
0
        public void HandleContractDataEndMessage(ContractDetailsEndMessage contractDetailsEndMessage)
        {
            if (IsComboLegRequest)
            {
                ComboContractResults.Show();
            }

            contractRequestActive = false;
            IsComboLegRequest     = false;
        }
예제 #4
0
 public void UpdateUI(ContractDetailsMessage message)
 {
     if (IsComboLegRequest)
     {
         ComboContractResults.UpdateUI(message);
     }
     else
     {
         HandleContractMessage(message);
     }
 }
예제 #5
0
 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;
 }