예제 #1
0
 public ShowApp(RemoteApp.RemoteApp ra, int pnum)
 {
     this.ra = ra;
     this.pnum = pnum;
     InitializeComponent();
     Thread t = new Thread(new ThreadStart(work));
     t.IsBackground = true;
     t.Start();
 }
예제 #2
0
        public ShowApp(RemoteApp.RemoteApp ra, int pnum)
        {
            this.ra   = ra;
            this.pnum = pnum;
            InitializeComponent();
            Thread t = new Thread(new ThreadStart(work));

            t.IsBackground = true;
            t.Start();
        }
예제 #3
0
        static void Main(string[] args)
        {
            RemoteApp.RemoteApp ra = new RemoteApp.RemoteApp();
            var t = ra.getProcesses();
            HwndObject pr = null;
            foreach(HwndObject p in t)
            {
                if (p.Title.ToLower().Contains("google chrome"))
                    pr = p;
            }
            ra.setProcess(pr);

            var b = ra.PrintWindow();
        }
예제 #4
0
 public AppClient()
 {
     TcpChannel chan = new TcpChannel();
     ChannelServices.RegisterChannel(chan, false);
     ra = (RemoteApp.RemoteApp)Activator.GetObject(
         typeof(RemoteApp.RemoteApp),
         "tcp://localhost:9000/remoteapp");
     if (ra == null)
         Console.WriteLine("cannot locate server");
     else
     {
         InitializeComponent();
         ArrayList l = ra.getNames();
         foreach (String s in l)
             procs.Items.Add(s);
     }
 }
예제 #5
0
        static void Main(string[] args)
        {
            RemoteApp.RemoteApp ra = new RemoteApp.RemoteApp();
            var        t           = ra.getProcesses();
            HwndObject pr          = null;

            foreach (HwndObject p in t)
            {
                if (p.Title.ToLower().Contains("google chrome"))
                {
                    pr = p;
                }
            }
            ra.setProcess(pr);

            var b = ra.PrintWindow();
        }
예제 #6
0
        public AppClient()
        {
            TcpChannel chan = new TcpChannel();

            ChannelServices.RegisterChannel(chan, false);
            ra = (RemoteApp.RemoteApp)Activator.GetObject(
                typeof(RemoteApp.RemoteApp),
                "tcp://localhost:9000/remoteapp");
            if (ra == null)
            {
                Console.WriteLine("cannot locate server");
            }
            else
            {
                InitializeComponent();
                ArrayList l = ra.getNames();
                foreach (String s in l)
                {
                    procs.Items.Add(s);
                }
            }
        }