private void RunAndShow(OutputWindow output) { output.Show(); output.Activate(); Application.DoEvents(); //huh? var run = options.Run(); scheme = run ? ColorScheme.Green : ColorScheme.Red; scheme.ApplyToMain(this); output.ShowText(run); semaphore.ShowResult(run); this.RunSound(run); }
public MainForm(Options options) { InitializeComponent(); this.options = options; this.semaphore = new Semaphore(options); BindHotKey(); Stop(); this.Left = Screen.PrimaryScreen.WorkingArea.Right - Width; this.Top = Screen.PrimaryScreen.WorkingArea.Top + 2 * SystemInformation.CaptionHeight; scheme.ApplyToMain(this); TitleBar.BindHandleTo(this); }