Ejemplo n.º 1
0
        //"play" button on play canvas "start hosting" on host canvas
        private void playGame_Click(object sender, RoutedEventArgs e)
        {
            parent.Children.Remove(parent.Children[1]);

            /*var connecting = new WaitingOnConnectionWindow();
             * connecting.Show();
             * WondersServer server = new WondersServer(3004);
             * ThreadStart ts = new ThreadStart(server.serverStart);
             * Thread thread = new Thread(ts );
             * thread.Start();*/

            WaitingToStartCanvasPlayer wait = new WaitingToStartCanvasPlayer(parent);
        }
Ejemplo n.º 2
0
        //"play" button on play canvas "start hosting" on host canvas
        private void playGame_Click(object sender, RoutedEventArgs e)
        {
            parent.Children.Remove(parent.Children[1]);

            /*var connecting = new WaitingOnConnectionWindow();
            connecting.Show();
            WondersServer server = new WondersServer(3004);
            ThreadStart ts = new ThreadStart(server.serverStart);
            Thread thread = new Thread(ts );
            thread.Start();*/

            WaitingToStartCanvasPlayer wait = new WaitingToStartCanvasPlayer(parent);
        }