Example #1
0
 public TestPage()
 {
     InitializeComponent();
     startMenu = new StartMenu();
     mainGame  = new MainGame();
     TestFrame.NavigationService.Navigate(startMenu);
     //ScrollView.ScrollToHorizontalOffset(this.Width / 2);
     //ScrollView.ScrollToVerticalOffset(this.Height / 2);
 }
Example #2
0
 public StartMenu()
 {
     InitializeComponent();
     StartMenuInstance = this;
     mainGame          = new MainGame();
     timer.Interval    = TimeSpan.FromMilliseconds(25);
     timer.Tick       += new System.EventHandler(Timer_Tick);
     timer.Start();
 }
        public AppModeGameConsole()
        {
            InitializeComponent();
            startMenu         = new StartMenu();
            mainGame          = new MainGame();
            AppMode.startMenu = startMenu;
            AppMode.mainGame  = mainGame;
            ConsoleFrame.NavigationService.Navigate(startMenu);

            ScrollView.ScrollToHorizontalOffset(343);
            ScrollView.ScrollToVerticalOffset(234);
        }
        public MainWindow()
        {
            InitializeComponent();
            MainWindowInstance = this;
            startMenu          = new StartMenu();
            mainGame           = new MainGame();
            MainFrame.NavigationService.Navigate(startMenu);
            textWindow = new TextMode();
            textWindow.Show();

            AppMode appWindow = new AppMode();

            appWindow.Show();
        }