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); }
private void ShowToolTip() { _taskTaskbarIcon.ShowBalloonTip("CallWall", "CallWall has started", BalloonIcon.Info); //Works _schedulerProvider.Dispatcher.Schedule(TimeSpan.FromSeconds(5), () => _taskTaskbarIcon.HideBalloonTip()); }
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; } }
public void HideBalloonTip() { _taskbarIcon.HideBalloonTip(); }
public void Handle(DoneReadingEvent message) { TaskbarIcon.HideBalloonTip(); }
private void WindowClosingEvent(object sender, System.ComponentModel.CancelEventArgs e) { TaskbarIcon.HideBalloonTip(); }
protected override string Process(string data) { _tb.HideBalloonTip(); _tb.ShowBalloonTip(Name, data, BalloonIcon.None); return(data); }
private void Show(Balloon balloon, BalloonIcon icon) { _tray.HideBalloonTip(); _balloon = balloon; _tray.ShowBalloonTip(balloon.Title, balloon.Text, icon); }