Exemplo n.º 1
0
 public static void Init()
 {
     ExtraLaunchParameters.InitializePackages();
     MinerPaths.InitializePackages();
     InitMinerReservedPortsFile();
     InitMinerSystemVariablesFile();
 }
Exemplo n.º 2
0
        private async void FormShown(object sender, EventArgs e)
        {
            MinerPaths.InitializePackages();
            ConfigManager.GeneralConfig.Use3rdPartyMiners = Use3rdPartyMiners.YES;
            await ComputeDeviceManager.QueryDevicesAsync();

            var devices = AvailableDevices.Devices;

            foreach (var device in devices)
            {
                dgv_devices.Rows.Add(GetDeviceRowData(device));

                var newRow = dgv_devices.Rows[dgv_devices.Rows.Count - 1];
                newRow.Tag = device;
            }
            // disable/enable all by default
            foreach (var device in devices)
            {
                foreach (var algo in device.GetAlgorithmSettings())
                {
                    algo.Enabled = true;
                }
            }
        }