Exemple #1
0
        /// <summary>
        /// Action lors du clic sur le label "lbl_scrNoteUpdate".
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private static void lbl_scrNoteUpdate_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            Label  clickedLabel = sender as Label;
            string scrNoteID    = clickedLabel.Name.Substring(10);

            List <string> scrNoteName            = VaultDatabase.GetScrNoteNameList(scrNoteID);
            List <byte[]> scrNoteCipheredContent = VaultDatabase.GetScrNoteContentList(scrNoteID);
            List <string> scrNotePlainContent    = PlainData(scrNoteCipheredContent);
            bool          scrNoteBookmark        = VaultDatabase.GetScrNoteBookmark(scrNoteID);
            List <string> scrNoteCrtDate         = VaultDatabase.GetScrNoteCrtDate(scrNoteID);
            List <string> scrNoteChgDate         = VaultDatabase.GetScrNoteChgDate(scrNoteID);
            List <string> scrNoteCategory        = VaultDatabase.GetScrNoteCategory(scrNoteID);

            List <string> scrNoteData = new List <string>();

            scrNoteData.Add(scrNoteName[0]);
            scrNoteData.Add(scrNotePlainContent[0]);
            scrNoteData.Add(scrNoteBookmark.ToString());
            scrNoteData.Add(scrNoteCrtDate[0]);
            scrNoteData.Add(scrNoteChgDate[0]);
            scrNoteData.Add(scrNoteCategory[0]);
            scrNoteData.Add(scrNoteID);

            usc_scrNote usc_noteHome = new usc_scrNote(scrNoteData);

            Switcher.Switch(usc_noteHome);

            return;
        }