public void MinerInfoLoaded(object sender, MinerInfoEventArgs e) { if (e.MinersToDisable.Count > 0) { UpdateStatus("Miner is currently running, attempting to stop..."); new Task(() => { launcherApi.StartStopMiner(); }).Start(); } else { HandleMonitorJobs(); } }
public void MinerEnabled(object sender, MinerInfoEventArgs e) { QuitGracefully(); }
public void MinerDisabled(object sender, MinerInfoEventArgs e) { Properties.Settings.Default.MinersDisabled = e.MinersToDisable; Properties.Settings.Default.Save(); HandleMonitorJobs(); }