/// <summary> /// Action lors du clic sur le label "lbl_aCardDelete". /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private static void lbl_aCardDelete_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { Label clickedLabel = sender as Label; string authenCardID = clickedLabel.Name.Substring(13); System.Windows.Forms.DialogResult dialogResult = System.Windows.Forms.MessageBox.Show(Data_Home.Default.lbl_MenuItemDelete_Click_Message_AuthenCard, Data_Home.Default.lbl_MenuItemDelete_Click_Title_AuthenCard, System.Windows.Forms.MessageBoxButtons.YesNo); if (dialogResult == System.Windows.Forms.DialogResult.Yes) { // Vérifie l'exécution de la suppression de la fiche d'authentification. if (VaultDatabase.DeleteAuthenCard(authenCardID)) { // Affiche l'interface d'accueil. usc_home usc_homeHome = new usc_home(); Switcher.Switch(usc_homeHome); return; } else { System.Windows.Forms.MessageBox.Show(Data_VaultDatabase.Default.DeleteAuthenCard); return; } } else { // Affiche l'interface d'accueil. usc_home usc_homeHome = new usc_home(); Switcher.Switch(usc_homeHome); return; } }