コード例 #1
0
 private void OnNotificationActivated(object?sender, NotificationActivatedEventArgs e)
 {
     ((IList <string>)_eventsListBox.Items).Add($"Notification activated: {e.ActionId}");
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: pr8x/DesktopNotifications
 private static void ManagerOnNotificationActivated(object?sender, NotificationActivatedEventArgs e)
 {
     Console.WriteLine($"Notification activated: {e.ActionId}");
 }