/// <summary> /// Shows the email notifier. /// </summary> /// <param name="message">The message.</param> public void ShowEmailNotifier(EventInvite message) { System.Windows.Application.Current.Dispatcher.Invoke((Action)(delegate { try { _taskbarNotifier.PlayTone(); _taskbarNotifier.BindInfo(message); _taskbarNotifier.SetInitialLocations(false); _taskbarNotifier.Notify(0, false); EmailDataContext.GetInstance().isNotifyShowing = true; } catch (Exception ex) { logger.Error("Error occurred as " + ex.Message); } })); }