コード例 #1
0
        private void Display_Click(string Message)
        {
            SecondaryWindow secondWindow = new SecondaryWindow();

            secondWindow.lyricBox.Text = Message;
            secondWindow.Show();
        }
コード例 #2
0
        private void BtnLogin_Click(object sender, RoutedEventArgs e)
        {
            int count = PersonneORM.getLoginCount(TextboxUsername.Text, PasswordBox.Password);

            if (count == 1)
            {
                SecondaryWindow secondaryWindow = new SecondaryWindow();
                Close();
                secondaryWindow.Show();
            }
            else
            {
                MessageBox.Show("L'identifiant ou le mot de passe sont incorrects.");
            }
        }