public void Handle(ShowBallonTip @event)
 {
     Dispatcher.CurrentDispatcher.BeginInvoke(
         new Action(
             () =>
             _notification.ShowBalloonTip(
                 @event.Timeout,
                 @event.TipTitle,
                 @event.TipText,
                 @event.ToolTipIcon)));
 }
Example #2
0
        private void ShowBallonMsg(string ext, string fileName, string done)
        {
            bool isSuccess = false;

            if (ext.Contains("chan"))
            {
                isSuccess = ShowBallonTip.Invoke("파일 복호화", $"{label_name.Text} 파일 {done}");
            }
            else
            {
                isSuccess = ShowBallonTip.Invoke("파일 암호화", $"{label_name.Text} 파일 {done}");
            }

            if (!isSuccess)
            {
                using (FormMessageBox fm = new FormMessageBox(done))
                {
                    fm.ShowDialog();
                }
            }
        }
 public void Handle(ShowBallonTip @event)
 {
     _notificationSubject.OnNext(@event);
 }