/** * SETTINGS FORM */ void ShowForm() { engine.Stop(); kbdHook.Start(); icon.Hide(); TopMost = true; UpdateUi(); Show(); }
private void OnPower(object sender, EventArgs e) { if (engine.IsStarted()) { engine.Stop(); } else { engine.Start(); } UpdateMenu(); }