private void cmdStop_Click(object sender, EventArgs e) { cmdStart.Enabled = true; cmdStop.Enabled = false; this.Monitor.StopMonitoring(); IdleManager.StopMonitoring(); this.Monitor.MessageReceived -= ProcessMessage; AppendMessage("Program stopped at " + DateTime.Now.ToShortTimeString() + "."); }
private void StopMonitoring() { cmdStart.Enabled = true; cmdStop.Enabled = false; this.Monitor.StopMonitoring(); IdleManager.StopMonitoring(); this.Monitor.MessageReceived -= ProcessMessage; LogMessage("Program stopped at " + DateTime.Now.ToShortTimeString() + ".", null, LogMessageType.Status); }