Advertisement
Guest User

Untitled

a guest
Apr 11th, 2010
1,052
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.84 KB | None | 0 0
  1. namespace FTPRush
  2. {
  3.     class Program
  4.     {
  5.         static void Main(string[] args)
  6.         {
  7.             RuSharp client = new RuSharp();
  8.             client.EnableCallback();
  9.             client.processCallback += new processCallbackEvent(clientCallback);
  10.             if (client.isRunning()) {
  11.                 Console.WriteLine("App running:" + client.getVersion());
  12.                 if (client.Login("tasdfasdfasdf", "", "RS_BOOKMARK"))
  13.                 {
  14.                     Console.WriteLine("Logged in OK.");
  15.                 }
  16.             }
  17.         }
  18.         public static void clientCallback(string[] args)
  19.         {
  20.             Console.WriteLine("Callback hit.");
  21.             for (int i = 0; i < args.Length; i++)
  22.             {
  23.                 Console.WriteLine("client callback: " + args[i]);
  24.             }
  25.  
  26.         }
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement