Example #1
0
        public void NewGameButton_Click(object sender, RoutedEventArgs e)
        {
            launch = new PlayScreen(avatar1.Source, p1Name.Text, avatar2.Source, p2Name.Text);

            PlayerPick.Hide();
            launch.ShowDialog();
            PlayerPick.Close();
        }
Example #2
0
        public MenuScreen()
        {
            InitializeComponent();
            timer           = new DispatcherTimer();
            timer.Interval  = TimeSpan.FromSeconds(10);
            timer.IsEnabled = true;
            timer.Tick     += Load;
            trail           = new PlayerMenu();
            trail.Hide();
            begin = new Loading();

            launch = new PlayScreen();
            begin.Show();


            launch.Hide();

            menu.Hide();
        }