Exemplo n.º 1
0
 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();
     }
 }
Exemplo n.º 2
0
        void Process_MonitorCall(object sender, MonitorInfoEventArgs e)
        {
            var info = e.PointInfo;

            this.Invoke(new Action(() => UpdatePointInfo(info)));
        }
Exemplo n.º 3
0
 public void MonitorModeMulti(object sender, MonitorInfoEventArgs e)
 {
     HandleMinerJobs(true);
 }
Exemplo n.º 4
0
 public void MonitorModeSingle(object sender, MonitorInfoEventArgs e)
 {
     Properties.Settings.Default.MonitorsDisabled = e.MonitorsToDisable;
     Properties.Settings.Default.Save();
     HandleScriptJobs();
 }
Exemplo n.º 5
0
 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();
 }