예제 #1
0
 private void KRBtnCompteDelete_Click(object sender, EventArgs e)
 {
     if (TestPasDeCompte())
     {
         if (MessageBox.Show(KEY.ALERTESUPPRESSIONCOMPTE, "Question", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
         {
             Compte.Delete(GetCompteCourant());
             dgvOperations.DataSource = null;
             lblSoldPoint.Text        = new double().ToString("#0.00", System.Globalization.CultureInfo.CurrentCulture) + " €";
             lblAVenir.Text           = new double().ToString("#0.00", System.Globalization.CultureInfo.CurrentCulture) + " €";
             lblSoldFinal.Text        = new double().ToString("#0.00", System.Globalization.CultureInfo.CurrentCulture) + " €";
             ChargeComboCompte();
             ActiveSauvegarde();
         }
     }
 }