예제 #1
0
        public void NFCDetected()
        {
            tb.HideBalloonTip();
            string text = "NFC Tag Detected, starting programs";

            callCMD("");
            tb.ShowBalloonTip(title, text, BalloonIcon.Info);
        }
        private void OnItemErrorCopy(Tuple <ReplicationItem, Exception> payload)
        {
            var title = GetBalloonTipTitle(payload.Item1.Fileset);

            _taskbarIcon.HideBalloonTip();
            _taskbarIcon.ShowBalloonTip(
                title,
                "Unable to copy " + payload.Item1.FileName + ".\n" + payload.Item2.Message,
                BalloonIcon.Error);
        }
예제 #3
0
        private void ShowToolTip()
        {
            _taskTaskbarIcon.ShowBalloonTip("CallWall", "CallWall has started", BalloonIcon.Info);

            //Works
            _schedulerProvider.Dispatcher.Schedule(TimeSpan.FromSeconds(5), () => _taskTaskbarIcon.HideBalloonTip());
        }
예제 #4
0
 public void ShowBalloonTip(string title, string message, BalloonIcon symbol, TimeSpan timeout)
 {
     lock (lockObject)
     {
         notifyIcon.ShowBalloonTip(title, message, symbol);
         cancelationToken.Cancel();
         var newToken = new CancellationTokenSource();
         Task.Run(async() =>
         {
             await Task.Delay(timeout);
             if (newToken.IsCancellationRequested)
             {
                 return;
             }
             notifyIcon.HideBalloonTip();
         }, newToken.Token);
         cancelationToken = newToken;
     }
 }
예제 #5
0
 public void HideBalloonTip()
 {
     _taskbarIcon.HideBalloonTip();
 }
예제 #6
0
 public void Handle(DoneReadingEvent message)
 {
     TaskbarIcon.HideBalloonTip();
 }
예제 #7
0
 private void WindowClosingEvent(object sender, System.ComponentModel.CancelEventArgs e)
 {
     TaskbarIcon.HideBalloonTip();
 }
예제 #8
0
 protected override string Process(string data)
 {
     _tb.HideBalloonTip();
     _tb.ShowBalloonTip(Name, data, BalloonIcon.None);
     return(data);
 }
예제 #9
0
 private void Show(Balloon balloon, BalloonIcon icon)
 {
     _tray.HideBalloonTip();
     _balloon = balloon;
     _tray.ShowBalloonTip(balloon.Title, balloon.Text, icon);
 }