Пример #1
0
 private void rbMoneyTransfer_Checked(object sender, RoutedEventArgs e)
 {
     try
     {
         if (rbMoneyTransfer.IsChecked.Value)
         {                //Rendre disponible les element dont on a besoin.
             GrpRetrait.IsEnabled   = false;
             GroupBoxDep.IsEnabled  = false;
             GrpTransfert.IsEnabled = true;
             TxtDepot.Clear();
             TxtRetrait.Clear();
             TxtMontantPaiement.Clear();
             GrpPaiementFacture.IsEnabled = false;
         }
     }
     catch
     {
         MessageBox.Show("Erreur");
     }
 }
Пример #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");
     }
 }
Пример #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");
     }
 }