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

            if (this.BalloonChanged != null)
            {
                this.BalloonChanged(this, e);
            }
        }
示例#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();
     }
 }
示例#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();
             }
         }));
     }
 }
示例#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
            }
        }
示例#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;
             }
         }
      }
 }
示例#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
            }
			 }
示例#13
0
        void notification_BalloonChanged(object sender, 
BalloonChangedEventArgs e)
        {
            if (e.Visible != true) {
                notification.Dispose ();
            }
        }