Exemplo n.º 1
0
        private void OnShowLogBallonTipp(SLLogEventArgs args)
        {
            if (m_tbNotify == null) return;

            switch (args.Type)
            {
                case LogType.Info:
                    SetOkayState();
                    if (!m_Data.NotifyOnInfo) return;
                    m_tbNotify.ShowBalloonTip(args.Titel, args.LogMessage, BalloonIcon.Info);
                    break;

                case LogType.Warning:
                    SetWarningState();
                    if (!m_Data.NotifyOnInfo) return;
                    m_tbNotify.ShowBalloonTip(args.Titel, args.LogMessage, BalloonIcon.Warning);
                    break;

                case LogType.Error:
                    SetWarningState();
                    if (!m_Data.NotifyOnError) return;
                    m_tbNotify.ShowBalloonTip(args.Titel, args.LogMessage, BalloonIcon.Error);
                    break;
            }
        }
Exemplo n.º 2
0
 public static void FireShowBallonTipp(SLLogEventArgs args)
 {
     if (ShowBallonTipp != null) ShowBallonTipp(args);
 }
Exemplo n.º 3
0
 private void OnShowLogFile(SLLogEventArgs args)
 {
     if (!File.Exists(Settings.LogFile)) return;
     Process.Start(Settings.LogFile);
 }