예제 #1
0
 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();
     }
 }
예제 #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();
         }
     }
 }