コード例 #1
0
 public void OnTerminated(TerminatedEventArgs args)
 {
     if (this.Terminated != null)
         this.Terminated(args);
 }
コード例 #2
0
        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);
                }));
            }
        }