Esempio n. 1
0
        private void Button_Back(object sender, RoutedEventArgs e)
        {
            InfosClient subWindow = new InfosClient(_client, _dbal);

            subWindow.Show();
            Close();
        }
Esempio n. 2
0
        private void Button_Chercher(object sender, RoutedEventArgs e)
        {
            Client c = _daoClient.SearchClient(TextBox_Prenom.Text, TextBox_Nom.Text, TextBox_Email.Text);

            if (c.Id != 0)
            {
                InfosClient wnd = new InfosClient(c, _dbal);
                wnd.Show();
                Close();
            }
            else
            {
                MessageBox.Show("Ce client n'existe pas");
            }
        }