void OIMService_OIMSendCompleted(object sender, OIMSendCompletedEventArgs e) { if (e.Error != null) { Console.WriteLine("OIM Send Error:" + e.Error.Message); } }
void client_SendOneFinish(MSNClient m, OIMSendCompletedEventArgs e) { if (e.Error != null) { errCt++; Console.WriteLine("{4}{0}:{1}, {2}, Error {3}", e.Sender, e.Receiver, e.Error, errCt, m.Prefix); } else { Contact c = m.Messenger.ContactList.GetContact(e.Receiver); if (c != null && c.CID.HasValue) { SaveHad(c.CID.Value); } failcount = 0; Console.WriteLine("{0,6} {1,-30}: {2,-4} Offline {3,-6}", m.Prefix, e.Sender, m.UserListLeft, ct); } SendMsg(m); }
void client_SendOneFinish(MSNClient m, OIMSendCompletedEventArgs e) { if (e.Error != null) { Console.WriteLine("{0} Error", testNum); } else { Console.WriteLine("{0} Offline Success", testNum); } if (testNum == 0) { finish(m); } else { //Thread.Sleep(2000); m.TestSend(); testNum--; } }
void OIMService_OIMSendCompleted(object sender, OIMSendCompletedEventArgs e) { action(); SendOneOfflineFinish(this, e); }
void client_SendOneFinish(MSNClient m, OIMSendCompletedEventArgs e) { if (e.Error != null) { Console.WriteLine("{0} Error", testNum); } else { Console.WriteLine("{0} Offline Success", testNum); } if (testNum == 0) { finish(m); } else { //Thread.Sleep(2000); m.TestSend(); testNum--; } }
void OIMService_OIMSendCompleted(object sender, OIMSendCompletedEventArgs e) { action(); SendOneOfflineFinish(this, e); }
void client_SendOneFinish(MSNClient m, OIMSendCompletedEventArgs e) { if (e.Error != null) { errCt++; Console.WriteLine("{4}{0}:{1}, {2}, Error {3}", e.Sender, e.Receiver, e.Error, errCt, m.Prefix); } else { Contact c = m.Messenger.ContactList.GetContact(e.Receiver); if(c != null && c.CID.HasValue){ SaveHad(c.CID.Value); } failcount = 0; Console.WriteLine("{0,6} {1,-30}: {2,-4} Offline {3,-6}", m.Prefix, e.Sender, m.UserListLeft, ct); } SendMsg(m); }