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();
 }
Esempio n. 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();
        }
        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();
        }
 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);
     }
 }
Esempio n. 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();
        }
Esempio n. 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);
                }
            }
        }