public void MonitorInfoLoaded(object sender, MonitorInfoEventArgs e) { if (e.MonitorsToDisable.Count > 0) { UpdateStatus("Switching to single monitor mode..."); new Task(() => { launcherApi.SwitchMonitorMode(); }).Start(); } else { HandleScriptJobs(); } }
void Process_MonitorCall(object sender, MonitorInfoEventArgs e) { var info = e.PointInfo; this.Invoke(new Action(() => UpdatePointInfo(info))); }
public void MonitorModeMulti(object sender, MonitorInfoEventArgs e) { HandleMinerJobs(true); }
public void MonitorModeSingle(object sender, MonitorInfoEventArgs e) { Properties.Settings.Default.MonitorsDisabled = e.MonitorsToDisable; Properties.Settings.Default.Save(); HandleScriptJobs(); }
public void MonitorInfoLoaded(object sender, MonitorInfoEventArgs e) { UpdateStatus(multimonitorSwitchEnabled ? "Switching to single monitor mode and setting Gamestream resolution..." : "Setting Gamestream resolution..."); new Task(() => { launcherApi.SwitchMonitorMode(false, multimonitorSwitchEnabled, resX, resY); }).Start(); }