Example #1
0
        private void OnNotification(FlowTomatorNotification notification)
        {
            Log.Error(notification.Message);

            if (Notification == null)
            {
                return;
            }

            Delegate[] invocations = Notification.GetInvocationList();
            foreach (Delegate invocation in invocations)
            {
                FlowTomatorNotificationHandler callback = (FlowTomatorNotificationHandler)invocation;

                try
                {
                    callback(notification);
                }
                catch (Exception e)
                {
                    Log.Error("Unable to invoke a notification callback. " + e.Message);
                    Notification -= callback;
                }
            }
        }
Example #2
0
 public void OnNotification(FlowTomatorNotification notification)
 {
     if (Notification != null)
     {
         Notification(notification);
     }
 }
Example #3
0
        private void Service_Notification(FlowTomatorNotification notification)
        {
            ToolTipIcon icon = ToolTipIcon.None;

            switch (notification.Importance)
            {
            case LogVerbosity.Error: icon = ToolTipIcon.Error; break;

            case LogVerbosity.Warning: icon = ToolTipIcon.Warning; break;

            case LogVerbosity.Info: icon = ToolTipIcon.Info; break;
            }

            Icon.ShowBalloonTip(5000, "FlowTomator", notification.Message, icon);
        }
Example #4
0
 public void OnNotification(FlowTomatorNotification notification)
 {
     if (Notification != null)
         Notification(notification);
 }
Example #5
0
        private void Service_Notification(FlowTomatorNotification notification)
        {
            ToolTipIcon icon = ToolTipIcon.None;

            switch (notification.Importance)
            {
                case LogVerbosity.Error: icon = ToolTipIcon.Error; break;
                case LogVerbosity.Warning: icon = ToolTipIcon.Warning; break;
                case LogVerbosity.Info: icon = ToolTipIcon.Info; break;
            }

            Icon.ShowBalloonTip(5000, "FlowTomator", notification.Message, icon);
        }