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

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