Beispiel #1
0
 private void rbWithdraw_Checked(object sender, RoutedEventArgs e)
 {
     try
     {
         if (rbWithdraw.IsChecked.Value)
         {                //Rendre disponible les element dont on a besoin.
             GrpRetrait.IsEnabled = true;
             TxtDepot.Clear();
             TxtMontantDuTransfert.Clear();
             TxtCompteTransfert.Clear();
             GroupBoxDep.IsEnabled        = false;
             GrpTransfert.IsEnabled       = false;
             GrpPaiementFacture.IsEnabled = false;
             TxtMontantPaiement.Clear();
         }
     }
     catch
     {
         MessageBox.Show("erreur");
     }
 }
Beispiel #2
0
 private void Deposit_Checked(object sender, RoutedEventArgs e)
 {
     try
     {
         if (rbDeposit.IsChecked.Value && GroupBoxDep != null && GrpRetrait != null)
         {
             GroupBoxDep.IsEnabled = true;
             TxtCompteTransfert.Clear();
             TxtMontantDuTransfert.Clear();
             TxtRetrait.Clear();
             TxtDepot.Clear();
             GrpRetrait.IsEnabled         = false;
             GrpTransfert.IsEnabled       = false;
             GrpPaiementFacture.IsEnabled = false;
             TxtMontantPaiement.Clear();
         }
     }
     catch (Exception)
     {
         MessageBox.Show("Erreur");
     }
 }
Beispiel #3
0
 private void rbPay_Checked(object sender, RoutedEventArgs e)
 {
     try
     {//Debut de la methode try catch
         if (rbPay.IsChecked.Value)
         {
             grpboxdep.IsEnabled          = false;
             GrpRetrait.IsEnabled         = false;
             GrpTransfert.IsEnabled       = false;
             GrpPaiementFacture.IsEnabled = true;
             TxtDepot.Clear();
             TxtDepot.Clear();
             TxtRetrait.Clear();
             TxtMontantDuTransfert.Clear();
             TxtCompteTransfert.Clear();
         }
     }
     catch
     {
         MessageBox.Show("Erreur");
     }
 }