public EngineConfiguration()
 {
     DeviceConfigurations = new List<DeviceConfiguration>();
     CoinConfigurations = new List<CoinConfiguration>();
     XgminerConfiguration = new XgminerConfiguration();
     StrategyConfiguration = new StrategyConfiguration();
 }
Beispiel #2
0
 public EngineConfiguration()
 {
     DeviceConfigurations  = new List <DeviceConfiguration>();
     CoinConfigurations    = new List <CoinConfiguration>();
     XgminerConfiguration  = new XgminerConfiguration();
     StrategyConfiguration = new StrategyConfiguration();
 }
Beispiel #3
0
 public StrategiesForm(StrategyConfiguration strategyConfiguration, List<CryptoCoin> knownCoins, 
     ApplicationConfiguration applicationConfiguration)
 {
     InitializeComponent();
     this.strategyConfiguration = strategyConfiguration;
     this.applicationConfiguration = applicationConfiguration;
     this.knownCoins = knownCoins;
 }
Beispiel #4
0
 public void LoadStrategyConfiguration()
 {
     try
     {
         StrategyConfiguration = ConfigurationReaderWriter.ReadConfiguration <StrategyConfiguration>(StrategyConfigurationsFileName());
     }
     catch (InvalidOperationException ex)
     {
         //legacy settings
         Obsolete.StrategyConfiguration obsoleteSettings = ConfigurationReaderWriter.ReadConfiguration <Obsolete.StrategyConfiguration>(StrategyConfigurationsFileName());
         StrategyConfiguration = new StrategyConfiguration();
         obsoleteSettings.StoreTo(StrategyConfiguration);
         SaveStrategyConfiguration();
     }
 }
 public void LoadStrategyConfiguration()
 {
     try
     {
         StrategyConfiguration = ConfigurationReaderWriter.ReadConfiguration<StrategyConfiguration>(StrategyConfigurationsFileName());
     }
     catch (InvalidOperationException ex)
     {
         //legacy settings
         Obsolete.StrategyConfiguration obsoleteSettings = ConfigurationReaderWriter.ReadConfiguration<Obsolete.StrategyConfiguration>(StrategyConfigurationsFileName());
         StrategyConfiguration = new StrategyConfiguration();
         obsoleteSettings.StoreTo(StrategyConfiguration);
         SaveStrategyConfiguration();
     }
 }
Beispiel #6
0
 public void LoadStrategyConfiguration()
 {
     StrategyConfiguration = ConfigurationReaderWriter.ReadConfiguration <StrategyConfiguration>(StrategyConfigurationsFileName());
 }