private void ViewButton_Click(object sender, RoutedEventArgs e)
        {
            UcReceptionLotScellesMagasinGeneral Newfrm = new UcReceptionLotScellesMagasinGeneral((CsLotMagasinGeneral)dtgrdScelle.SelectedItem, SessionObject.ExecMode.Consultation, dtgrdScelle);;

            Newfrm.CallBack += Newfrm_CallBack;
            Newfrm.Show();
        }
 private void UpdateButton_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         UcReceptionLotScellesMagasinGeneral Updatefrm = new UcReceptionLotScellesMagasinGeneral((CsLotMagasinGeneral)dtgrdScelle.SelectedItem, SessionObject.ExecMode.Modification, dtgrdScelle);
         Updatefrm.CallBack += Newfrm_CallBack;
         Updatefrm.Show();
     }
     catch (Exception)
     {
         throw;
     }
 }
 private void NewButton_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         UcReceptionLotScellesMagasinGeneral Newfrm = new UcReceptionLotScellesMagasinGeneral();;
         Newfrm.CallBack += Newfrm_CallBack;
         Newfrm.Show();
     }
     catch (Exception)
     {
         throw;
     }
 }