private void BtnAddNote_Click(object sender, EventArgs e)
 {
     using (AddNote note = new AddNote(userToBeEdited, false))
     {
         note.ShowDialog();
     }
 }
 private void btnViewNote_Click(object sender, EventArgs e)
 {
     using (AddNote note = new AddNote(newPackage, true))
     {
         note.ShowDialog();
     }
 }
Example #3
0
 private void BtnAddNote_Click(object sender, EventArgs e)
 {
     if (message == "ADD")
     {
         using (AddNote note = new AddNote(newUser, false))
         {
             note.ShowDialog();
         }
     }
     else
     {
         using (AddNote note = new AddNote(userToBeEdited, false))
         {
             note.ShowDialog();
         }
     }
 }