private void btnStop_Click(object sender, EventArgs e) { GoTestingTester.Stop(); btnStart.Enabled = true; btnStop.Enabled = false; _notifyicon.Text = @"stoped"; _allowexit = true; }
private void btnStart_Click(object sender, EventArgs e) { GoTestingTester.Start(); btnStart.Enabled = false; btnStop.Enabled = true; WindowState = FormWindowState.Minimized; _notifyicon.Text = @"started"; _allowexit = false; }