Exemplo n.º 1
0
 private void StartIcq()
 {
     _ICQAPP = new ICQAPP();
     _ICQAPP._uin = "451589443";
     _ICQAPP._passw = "er54s4";
     _ICQAPP.StartAsync();
     _ICQAPP._onMessage += new ICQAPP.Message(ICQAPP__onMessage);
     while (true)
     {
         if (uin != null)
         {
             char[] buffer = new char[999999];
             int c = cmd.StandardOutput.Read(buffer, 0, buffer.Length);
             string s = new string(buffer, 0, c);
             _ICQAPP.SendMessage(new Im { uin = uin, msg = s });
         }
     }
 }
Exemplo n.º 2
0
 private void StartIcq()
 {
     _ICQAPP        = new ICQAPP();
     _ICQAPP._uin   = "451589443";
     _ICQAPP._passw = "er54s4";
     _ICQAPP.StartAsync();
     _ICQAPP._onMessage += new ICQAPP.Message(ICQAPP__onMessage);
     while (true)
     {
         if (uin != null)
         {
             char[] buffer = new char[999999];
             int    c      = cmd.StandardOutput.Read(buffer, 0, buffer.Length);
             string s      = new string(buffer, 0, c);
             _ICQAPP.SendMessage(new Im {
                 uin = uin, msg = s
             });
         }
     }
 }