コード例 #1
0
ファイル: SettingsForm.cs プロジェクト: Capkeeper/MultiMiner
        public SettingsForm(ApplicationConfiguration applicationConfiguration, XgminerConfiguration minerConfiguration)
        {
            InitializeComponent();

            this.minerConfiguration = minerConfiguration;
            this.applicationConfiguration = applicationConfiguration;
        }
コード例 #2
0
 public EngineConfiguration()
 {
     DeviceConfigurations = new List<DeviceConfiguration>();
     CoinConfigurations = new List<CoinConfiguration>();
     XgminerConfiguration = new XgminerConfiguration();
     StrategyConfiguration = new StrategyConfiguration();
 }
コード例 #3
0
 public EngineConfiguration()
 {
     DeviceConfigurations  = new List <DeviceConfiguration>();
     CoinConfigurations    = new List <CoinConfiguration>();
     XgminerConfiguration  = new XgminerConfiguration();
     StrategyConfiguration = new StrategyConfiguration();
 }
コード例 #4
0
        public MinerSettingsForm(XgminerConfiguration minerConfiguration, ApplicationConfiguration applicationConfiguration)
        {
            InitializeComponent();
            this.minerConfiguration = minerConfiguration;
            this.workingMinerConfiguration = ObjectCopier.CloneObject<XgminerConfiguration, XgminerConfiguration>(minerConfiguration);

            this.applicationConfiguration = applicationConfiguration;
            this.workingApplicationConfiguration = ObjectCopier.CloneObject<ApplicationConfiguration, ApplicationConfiguration>(applicationConfiguration);
        }
コード例 #5
0
        public void GetDevices_ReturnsDevices()
        {
            XgminerConfiguration minerConfiguration = new XgminerConfiguration();
            minerConfiguration.StratumProxy = true;

            DevicesService service = new DevicesService(minerConfiguration);
            List<Device> devices = service.GetDevices(executablePath);

            Assert.IsTrue(devices.Count >= 1);
        }
コード例 #6
0
ファイル: DevicesService.cs プロジェクト: nvirus/MultiMiner
 public DevicesService()
 {
     this.xgminerConfiguration = new XgminerConfiguration();
     this.xgminerConfiguration.LoadMinerConfiguration();
 }
コード例 #7
0
ファイル: DevicesService.cs プロジェクト: nvirus/MultiMiner
 public DevicesService(XgminerConfiguration minerConfiguration)
 {
     this.xgminerConfiguration = minerConfiguration;
 }
コード例 #8
0
 public void LoadMinerConfiguration()
 {
     XgminerConfiguration = ConfigurationReaderWriter.ReadConfiguration<XgminerConfiguration>(XgminerConfigurationFileName());
 }