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; } }
public static void FireShowBallonTipp(SLLogEventArgs args) { if (ShowBallonTipp != null) ShowBallonTipp(args); }
private void OnShowLogFile(SLLogEventArgs args) { if (!File.Exists(Settings.LogFile)) return; Process.Start(Settings.LogFile); }