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

            window.Show();
            this.Close();
        }
Example #2
0
        // Button to continue booking
        private void buttonContinue_Click(object sender, RoutedEventArgs e)
        {
            FileText ft = new FileText();

            ft.Filename = "...\\Match.txt";
            ft.ReadData();
            Global.Check = 1;
            ConfirmData_Match window = new ConfirmData_Match();

            window.Show();
            this.Close();
        }
Example #3
0
        private void button_Click(object sender, RoutedEventArgs e)
        {
            string pass;

            pass = textBox.Text;
            //Create password(for admin)
            if (pass == "123")
            {
                ConfirmData_Match window = new ConfirmData_Match();
                window.Show();
                this.Close();
            }
            //Check input password
            else
            {
                MessageBox.Show("Password is incorrect. Please try again");
                textBox.Focus();
            }
        }