// Update input values and icon state void UpdateUi() { textBoxSwitchHotkey.Text = settings.SwitchHotkey.ToString(); textBoxConvertHotkey.Text = settings.ConvertSelectionHotkey.ToString(); checkBoxAutorun.Checked = settings.AutoStart == true; checkBoxTrayIcon.Checked = settings.ShowTrayIcon == true; DisplaySwitchDelay(settings.SwitchDelay); icon.SetRunning(engine.IsStarted()); }
private void UpdateMenu() { power.Text = engine.IsStarted() ? "Turn off" : "Turn on"; }