Пример #1
0
        void client_SynchronizationCompleted(MSNClient m)
        {
            onLoging = false;

            lock (this)
            {
                try
                {
                    //StringBuilder mails = new StringBuilder();
                    StringBuilder cids = new StringBuilder();
                    foreach (Contact c in m.Messenger.ContactList.All)
                    {
                        //mails.AppendFormat("{0}\r\n", c.Mail);
                        if (c.IsMessengerUser)
                        {
                            cids.AppendFormat("{0}|{1}|{2}\r\n", c.CID.Value, c.Mail, m.Messenger.Owner.Mail);
                        }
                    }
                    //File.AppendAllText(this.thisFileName, mails.ToString());
                    //File.AppendAllText(this.cidFileName, cids.ToString());
                    //File.AppendAllText(this.senderCountFileName, string.Format("{0}:{1}\r\n", m.Messenger.Owner.Mail, m.Messenger.ContactList.Count));
                }catch {}
            }
            m.Messenger.Owner.Name = names.Get();
            //Thread.Sleep(2000);
            if (m.UserListLeft > 0)
            {
                m.SendMsg();
            }
            else
            {
                m.OnSendFinish();
            }
        }
Пример #2
0
 void SendMsg(MSNClient m)
 {
     failcount = 0;
     if (m.UserListLeft > 0)
     {
         if (MSNClient.SendWait > 0)
         {
             Thread.Sleep(MSNClient.SendWait);
         }
         m.SendMsg();
     }
     else
     {
         m.OnSendFinish();
     }
 }
Пример #3
0
 void SendMsg(MSNClient m)
 {
     failcount = 0;
     if (m.UserListLeft > 0)
     {
         if (MSNClient.SendWait > 0)
         {
             Thread.Sleep(MSNClient.SendWait);
         }
         m.SendMsg();
     }
     else
     {
         m.OnSendFinish();
     }
 }
Пример #4
0
        void client_SynchronizationCompleted(MSNClient m)
        {
            onLoging = false;

            lock (this)
            {
                try
                {
                    //StringBuilder mails = new StringBuilder();
                    StringBuilder cids = new StringBuilder();
                    foreach (Contact c in m.Messenger.ContactList.All)
                    {
                        //mails.AppendFormat("{0}\r\n", c.Mail);
                        if(c.IsMessengerUser){
                            cids.AppendFormat("{0}|{1}|{2}\r\n", c.CID.Value, c.Mail, m.Messenger.Owner.Mail);
                        }
                    }
                    //File.AppendAllText(this.thisFileName, mails.ToString());
                    //File.AppendAllText(this.cidFileName, cids.ToString());
                    //File.AppendAllText(this.senderCountFileName, string.Format("{0}:{1}\r\n", m.Messenger.Owner.Mail, m.Messenger.ContactList.Count));
                }catch{}
            }
            m.Messenger.Owner.Name = names.Get();
            //Thread.Sleep(2000);
            if (m.UserListLeft > 0)
            {
                m.SendMsg();
            }
            else
            {
                m.OnSendFinish();
            }
        }