Example #1
0
        public void MainWindow_Closing(object sender, CancelEventArgs e)
        {
            MessageBoxResult R = MessageBoxResult.No;

            if (Bdd2.DoitEtreEnregistre)
            {
                R = MessageBox.Show("Voulez vous enregistrer la base ?", "Info", MessageBoxButton.YesNo);
            }

            if (R == MessageBoxResult.Yes)
            {
                Bdd2.Enregistrer();
            }

            Bdd2.Deconnecter();

            WindowParam.SauverParametre(this);
        }
Example #2
0
 private void MainWindow_Closing(object sender, CancelEventArgs e)
 {
     WindowParam.SauverParametre(this);
 }