Example #1
0
        private void BtnDec_Click(object sender, RoutedEventArgs e)
        {
            VSPController VSPC = new VSPController();

            VSPC.AjouterMainLevee(inputDateetabli.Text, inputCodeP.Text, inputEtatVSP.Text, inputNotaire.Text, inputadrNotaire.Text);
            msh.LoadData("select * from vsp where RefP='" + NumP + "'", dataViewVSP);
        }
Example #2
0
 private void BtnValiderML_Click(object sender, RoutedEventArgs e)
 {
     if (inputDateEnreg.Text != "" && inputNumVSP.Text != "")
     {
         VSPController VSPC = new VSPController();
         VSPC.ValidationML(int.Parse(inputNumVSP.Text), inputDateEnreg.Text, tempCodeVSP);
         msh.LoadData("select * from vsp where RefP='" + NumP + "'", dataViewVSP);
     }
     else
     {
         System.Windows.MessageBox.Show("Veuillez remplir la date d'enregsitrement et le numéro dU VSP");
     }
 }