/// <summary> /// Action lors du clic sur le label "lbl_scrNoteDelete". /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private static void lbl_scrNoteDelete_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { Label clickedLabel = sender as Label; string scrNoteID = clickedLabel.Name.Substring(10); System.Windows.Forms.DialogResult dialogResult = System.Windows.Forms.MessageBox.Show(Data_Home.Default.lbl_MenuItemDelete_Click_Message_ScrNote, Data_Home.Default.lbl_MenuItemDelete_Click_Title_ScrNote, System.Windows.Forms.MessageBoxButtons.YesNo); if (dialogResult == System.Windows.Forms.DialogResult.Yes) { // Vérifie l'exécution de la suppression du de la note sécurisée. if (VaultDatabase.DeleteScrNote(scrNoteID)) { // 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.DeleteScrNote); return; } } else { // Affiche l'interface d'accueil. usc_home usc_homeHome = new usc_home(); Switcher.Switch(usc_homeHome); return; } }