Beispiel #1
0
 private void acceptNotification(object sender, EventArgs e)
 {
     if (!notification.notified)
     {
         notification.notified = true;
         ActionRegistrator.addRecord(DateTime.Now, "notify", Program.mainForm.userName, "Уведомление принято");
     }
 }
Beispiel #2
0
 private void notify(object state)
 {
     notification = (Notification)state;
     notifyIcon.BalloonTipText  = notification.getMessage();
     notifyIcon.BalloonTipTitle = notification.getTitle();
     notifyIcon.BalloonTipIcon  = ToolTipIcon.Info;
     notifyIcon.ShowBalloonTip(2000);
     ActionRegistrator.addRecord(DateTime.Now, Misc.getMethodName(), Program.mainForm.userName, notification.getTitle());
 }