Exemple #1
0
        private void buttonBack_Click(object sender, RoutedEventArgs e)
        {
            Seats_stadium window = new Seats_stadium();

            window.Show();
            this.Close();
        }
Exemple #2
0
        private void buttonNext_Click(object sender, RoutedEventArgs e)
        {
            // Check user's choice
            Match match = dataGridMatch.SelectedItem as Match;

            if (match != null)
            {
                Global.index = match.No - 1;
                Seats_stadium window = new Seats_stadium();
                window.Show();
                this.Close();
            }
            else
            {
                MessageBox.Show("Please select a match you would like to watch");
            }
        }