private void CheckBoxOnlyInRDP_CheckedChanged(object sender, EventArgs e) { if (CheckBoxOnlyInRDP.Checked) { TimerDisplayDetector_Tick(sender, e); TimerDisplayDetector.Start(); } else { TimerDisplayDetector.Stop(); StartDisplayHolding(); } ButtonMinimize.Focus(); }
private void CheckBoxWakeScreen_CheckedChanged(object sender, EventArgs e) { ButtonMinimize.Focus(); }
private void ButtonMinimize_Click(object sender, EventArgs e) { ButtonMinimize.Focus(); this.WindowState = FormWindowState.Minimized; }