Пример #1
0
        public MainWindow()
        {
            InitializeComponent();

            comSock = new commSockReceiver(35006);
            comSock.IncomingLine += comSock_IncomingLine;
            comSock.newConnection += comSock_newConnection;
            comSock.connectionLost += comSock_connectionLost;
            comSock.beginAccept();

            frontSSR = new snapShotReceiver(35007);
            frontSSR.newSnapShotReceived += frontSSR_newSnapShotReceived;

            rightSSR = new snapShotReceiver(35009);
            rightSSR.newSnapShotReceived += rightSSR_newSnapShotReceived;

            backSSR = new snapShotReceiver(35008);
            backSSR.newSnapShotReceived += backSSR_newSnapShotReceived;

            leftSSR = new snapShotReceiver(35011);
            leftSSR.newSnapShotReceived += leftSSR_newSnapShotReceived;

            this.WindowState = System.Windows.WindowState.Maximized;
            mapPalette.newPaletteItemSelected += mapPalette_newPaletteItemSelected;
            mapWin = new mapWindow();
            mapWin.Show();
            leftMagWin = new magnificationWindow(1, "Left Magnification");
            leftMagWin.Show();
            rightMagWin = new magnificationWindow(2, "Right Magnification");
            rightMagWin.Show();
        }
Пример #2
0
 public MainWindow()
 {
     InitializeComponent();
     SSReceiver = new snapShotReceiver(35005);
     SSReceiver.newSnapShotReceived += SSReceiver_newSnapShotReceived;
 }