public void OnTerminated(TerminatedEventArgs args) { if (this.Terminated != null) this.Terminated(args); }
private void OnTerminated(TerminatedEventArgs args) { if (this.mClosing == false) { string message = ""; foreach (string program in args.Programs) { message += "\n - " + program; } this.BeginInvoke(new MethodInvoker(delegate() { this.notifyIcon1.ShowBalloonTip(5000, "Processes Killed", "The following processes were terminated because the daily allotment of time has expired: \n" + message, ToolTipIcon.Info); })); } }