Example #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;
        }
Example #2
0
        /// <summary>
        /// Action lors clic sur le bouton "cmd_addNote".
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void cmd_addScrNote_Click(object sender, RoutedEventArgs e)
        {
            usc_scrNote usc_scrNoteHome = new usc_scrNote();

            Switcher.Switch(usc_scrNoteHome);
        }