Exemplo n.º 1
0
        /// <summary>
        /// open card on mouse up.
        /// </summary>
        private void NoteCard_MouseUp(object sender, MouseButtonEventArgs e)
        {
            NoteCard card = (NoteCard)sender;

            if (card != null)
            {
                this.page_Note = card.GetEditePage(this, this.database);
                this.page_Note.Show();
                this.Hide();
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// open a empty show and edit note page to add new note.
 /// </summary>
 private void Button_Add_Click(object sender, RoutedEventArgs e)
 {
     page_Note = new ShowAndEditNote(this, this.database, userID);
     page_Note.Show();
     this.Hide();
 }