private static void OnBalloonChanged(object sender, BalloonChangedEventArgs e)
 {
     if (!e.Visible)
     {
         ((Notification)sender).Dispose();
     }
 }
Exemple #2
0
 private static void OnNotificationChanged(object sender, BalloonChangedEventArgs e)
 {
     if (e.Visible == false)
     {
         (sender as Notification).Dispose();
     }
 }
Exemple #3
0
 void notification_BalloonChanged(object sender,
                                  BalloonChangedEventArgs e)
 {
     if (e.Visible != true)
     {
         notification.Dispose();
     }
 }
Exemple #4
0
        internal void OnBalloonChanged(BalloonChangedEventArgs e)
        {
            //update visible state
            mVisible = e.Visible;

            if (this.BalloonChanged != null)
            {
                this.BalloonChanged(this, e);
            }
        }
Exemple #5
0
 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();
     }
 }
Exemple #6
0
 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();
             }
         }));
     }
 }
Exemple #7
0
 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;
             }
         }));
     }
 }
    internal void OnBalloonChanged(BalloonChangedEventArgs e)
    {
      //update visible state
      mVisible = e.Visible;

      if (this.BalloonChanged != null)
      {
        this.BalloonChanged(this, e);
      }
    }
        void _notification_BalloonChanged(object sender, 
BalloonChangedEventArgs e)
        {
            if (e.Visible == true) {
                // some action
            }
        }
Exemple #10
0
 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;
             }
         }
      }
 }
Exemple #11
0
 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) {
                // some action
            }
			 }
        void notification_BalloonChanged(object sender, 
BalloonChangedEventArgs e)
        {
            if (e.Visible != true) {
                notification.Dispose ();
            }
        }