Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="newFriend"></param>
        private void hasNoneFormAndNotCache(
            Friend newFriend)
        {
            #region
            P2P p2pwindow = new P2P();
            newFriend._FrmHandle = p2pwindow.Handle;

            if (FriendCollector.Add(newFriend))
            {
                p2pwindow._Friend = newFriend;
                p2pwindow._Friend._MessageMode = MessageMode.HasPop;
            }

            p2pwindow.Show();
            #endregion
        }
Exemplo n.º 2
0
 private void IconStatus_OnFlash(
     object sender, EventArgs e)
 {
     #region
     foreach (Friend friend in FriendCollector._Friends)
     {
         if (friend._MessageMode == MessageMode.None)
         {
             P2P p2pwindow = new P2P();
             p2pwindow._Friend            = friend;
             p2pwindow._Friend._FrmHandle = p2pwindow.Handle;
             p2pwindow.Show();
         }
     }
     _iconController.Reset();
     _iconController._IconStatus.SetIconStatusMode(IconStatusMode.Normal);
     #endregion
 }
Exemplo n.º 3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="findFriend"></param>
        private void hasNoneFormAndInCache(
            Friend findFriend)
        {
            #region
            int nonepopcount = 0;
            foreach (Friend friend in FriendCollector._Friends)
            {
                if (friend._MessageMode == MessageMode.None)
                {
                    nonepopcount++;
                }
            }
            if (nonepopcount == 1)
            {
                this._iconController.Reset();
            }

            P2P p2pwindow = new P2P();
            p2pwindow._Friend            = findFriend;
            p2pwindow._Friend._FrmHandle = p2pwindow.Handle;
            p2pwindow.Show();
            #endregion
        }