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

            window.Show();
            this.Close();
        }
示例#2
0
文件: Check.xaml.cs 项目: NgHieu/KDZ
        // 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();
        }
示例#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();
            }
        }