private void btn_calandar_Click(object sender, EventArgs e) { MainNotePage notesHome = new MainNotePage(service); //this.Hide(); notesHome.Show(); }
private void iconButton2_Click(object sender, EventArgs e) { MainNotePage DirectToMainNotePage2 = new MainNotePage(service); DirectToMainNotePage2.Show(); this.Visible = false; }
private void iconButton1_Click(object sender, EventArgs e) { //Event handler for the note being deleted service.remove_note(note); service.save_notes(); //MessageBox.Show("Note Deleted"); this.Hide(); // Direct to Main note page MainNotePage DirectToMainNotePage = new MainNotePage(service); DirectToMainNotePage.Show(); this.Visible = false; }
// save note button private void iconButton2_Click(object sender, EventArgs e) { //set the note's text note.set_message(txtbox_NotePad.Text); note.set_title(note_title.Text); note.date = date_picker.Value; //save the notes service.add_note(note); service.save_notes(); MainNotePage SaveButtonPassingThrough = new MainNotePage(service); SaveButtonPassingThrough.Show(); this.Visible = false; // potentially will add a message box. }
private void NewNote_FormClosed(object sender, FormClosedEventArgs e) { MainNotePage notes = new MainNotePage(service); notes.Show(); }