private static void OnBalloonChanged(object sender, BalloonChangedEventArgs e) { if (!e.Visible) { ((Notification)sender).Dispose(); } }
private static void OnNotificationChanged(object sender, BalloonChangedEventArgs e) { if (e.Visible == false) { (sender as Notification).Dispose(); } }
void notification_BalloonChanged(object sender, BalloonChangedEventArgs e) { if (e.Visible != true) { notification.Dispose(); } }
internal void OnBalloonChanged(BalloonChangedEventArgs e) { //update visible state mVisible = e.Visible; if (this.BalloonChanged != null) { this.BalloonChanged(this, e); } }
private void n_BalloonChanged(object sender, BalloonChangedEventArgs e) { // The Visible property indicates the current state of the // popup notification balloon if (e.Visible == false) { // If the balloon has now been hidden, display a message box // to the user. // MessageBox.Show("The balloon has been closed", "Status"); notification.Dispose(); } }
private void OnLoginNotificationMessageChanged(object sender, BalloonChangedEventArgs e) { if (e.Visible == false) { Invoke(new Action(delegate() { if (loginScreen != null) { loginScreen.DataSubmitted -= OnLoginDataSubmitted; loginScreen.CancelConnection -= OnConnectionCanceled; loginScreen.Close(); } })); } }
private void OnNotificationMessageChanged(object sender, BalloonChangedEventArgs e) { if (e.Visible == false) { Invoke(new Action(delegate() { if (formScreen != null) { formScreen.ExternalClosing = true; formScreen.Close(); } if (UpdateRecentForms()) { warningButton.Visible = true; } else { warningButton.Visible = false; } })); } }
void _notification_BalloonChanged(object sender, BalloonChangedEventArgs e) { if (e.Visible == true) { // some action } }
private void notification_BalloonChanged(object sender, BalloonChangedEventArgs e) { lock (notification) { if (e.Visible == false) { notification.Visible = false; if ((m_toastQueue != null) && (m_toastQueue.Count > 0)) { ToastItem item = m_toastQueue.Dequeue(); notification.Caption = item.Caption; if (m_toastQueue.Count > 0) { notification.Text = string.Format("{0}<br><br>Remain:{1} <a href=\"clear\">clear</a>", item.Text, m_toastQueue.Count); } else { notification.Text = item.Text; } notification.Visible = true; } } } }
private void OnNotifyBubChange(Object obj, BalloonChangedEventArgs e) { //handeles Nofificaiton Change this.NotifyVisable.Text = e.Visible.ToString(); }
void notification_BalloonChanged(object sender, BalloonChangedEventArgs e) { if (e.Visible != true) { notification.Dispose (); } }