Example #1
0
        public MainWindow()
        {
            InitializeComponent();
            client             = new TcpClient();
            updateMsg.Interval = TimeSpan.FromMilliseconds(500);
            updateMsg.Tick    += UpdateMsg_Tick;
            screenWindow       = new Screenies();

            /*pbox = new PictureBox();
             * pbox.Visible = true;
             * pbox.Location = new System.Drawing.Point(0, 0);
             * windowsForms.Child = pbox;*/
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Screenie = ((ScreenShotServerClient.Screenies)(target));
                return;

            case 2:
                this.wformHost = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
                return;
            }
            this._contentLoaded = true;
        }