示例#1
0
 public void Notify(GraphNotification notification)
 {
     try {
         if (notification.Source == null)
         {
             GlobalSettings.Instance.UserLog.Add(new LogMessage(_msgTypeConverter[notification.Type], notification.Message));
         }
         else
         {
             GlobalSettings.Instance.UserLog.Add(new NodeMessage(notification.Source, _msgTypeConverter[notification.Type], notification.Message));
         }
     } catch (KeyNotFoundException) {
         GlobalSettings.Instance.UserLog.Add(new LogMessage(LogMessage.LogType.Warning,
                                                            $"Unknown notification type: {notification.Type}. Message: {notification.Message}"));
     }
 }
示例#2
0
 public NotifyEventArgs(GraphNotification notification, object itemData)
 {
     Notification = notification;
     ItemData     = itemData;
 }
示例#3
0
 private void Notify(object instance, GraphNotification action)
 {
 }