Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace SI4WpfLabo1
- {
- /// <summary>
- /// Logique d'interaction pour MainWindow.xaml
- /// </summary>
- public partial class MainWindow : MetroWindow
- {
- public MainWindow()
- {
- InitializeComponent();
- }
- private void Window_Loaded(object sender, RoutedEventArgs e)
- {
- }
- private void BtnConnexion_Click(object sender, RoutedEventArgs e)
- {
- const string idlogin = "d.germann";
- const string mdplogin = "H4x0r";
- if (TbxLogin.Text != idlogin || TbxPassword.Password != mdplogin)
- {
- MessageBox.Show("Mauvais ID/MDP");
- }
- else
- {
- DialogManager.ShowModalMessageExternal(this, "Connexion", "Bonjour " + TbxLogin.Text);
- Accueil A = new Accueil();
- A.Show();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement