Exemplo n.º 1
0
Arquivo: App.xaml.cs Projeto: bdr27/c-
        public App()
            : base()
        {
            mainWindow = new MainWindow();
            mainWindow.Show();

            //wire the handlers
            wireHandlers(mainWindow);

        }
Exemplo n.º 2
0
Arquivo: App.xaml.cs Projeto: bdr27/c-
        public App()
            : base()
        {
            state = State.WAIT_VALID_IP;
            //TODO incorperate this with the view so when I click on a space it highlights red
            player1Window = new MainWindow();
            player2Window = new MainWindow();
            player2Window.IPAddressMenuItem.IsEnabled = false;
            player1Window.Show();
            player2Window.Show();

            //wire the handlers
            wireHandlers(player1Window);
            wireHandlers(player2Window);

            updateGameState();
        }
Exemplo n.º 3
0
Arquivo: App.xaml.cs Projeto: bdr27/c-
 private void wireHandlers(MainWindow playerWindow)
 {
     playerWindow.AddIPAddressMenuItemHandler(HandleIPAddressMenuItem);
     playerWindow.NameMenuItemHandler(HandleNameMenuItem);
 }