GetUnreadCount() 공개 정적인 메소드

public static GetUnreadCount ( ) : int
리턴 int
예제 #1
0
        private void CheckNewMail()
        {
            int Count = Imap.GetUnreadCount();

            if (Count > 0)
            {
                notifyIcon.ShowBalloonTip(NotifyTimeout, "Новая почта",
                                          "Непрочитанных сообщений: " + Count.ToString(), ToolTipIcon.Info);

                /*if (Properties.Settings.Default.PlaySound) {
                 *      try {
                 *              (new SoundPlayer(soundPath)).Play();
                 *      } catch (Exception) { }
                 * }*/
            }
            UpdateTrayIcon(Count);
        }
예제 #2
0
 private void timer_Tick(object sender, EventArgs e)
 {
     if (Util.IsInternetConnected())
     {
         if (Imap.Started())
         {
             UpdateTrayIcon(Imap.GetUnreadCount());
         }
         else
         {
             /* attempt to silently reconnect */
             Reconnect(false);
         }
     }
     else
     {
         /* Stop if not connected to the internet */
         Imap.Stop();
     }
 }