/// <summary>
 /// View Note
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnViewNote_Click(object sender, EventArgs e)
 {
     using (ManageNotes note = new ManageNotes(newPackage, true))
     {
         note.ShowDialog();
     }
 }
 /// <summary>
 /// Add Note
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnAddNote_Click(object sender, EventArgs e)
 {
     using (ManageNotes note = new ManageNotes(newPackage, false))
     {
         note.ShowDialog();
         newPackage = (Package)note.GetObjectData;
     }
 }
Example #3
0
        private void pcBxViewNote_Click(object sender, EventArgs e)
        {
            Package pack = (Package)datGridHistory.SelectedRows[0].DataBoundItem;

            pack.Notes = DataConnectionClass.PackageConnClass.GetNotesList(pack.Package_PersonId);
            using (ManageNotes note = new ManageNotes(pack, true))
            {
                note.ShowDialog();
            }
        }
 /// <summary>
 /// Allow the user to view user notes
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BtnViewNote_Click(object sender, EventArgs e)
 {
     if (message == "ADD")
     {
         using (ManageNotes note = new ManageNotes(newUser, true))
         {
             note.ShowDialog();
         }
     }
     else
     {
         using (ManageNotes note = new ManageNotes(userToBeEdited, true))
         {
             note.ShowDialog();
         }
     }
 }
 /// <summary>
 /// Allow a user to add user notes
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BtnAddNote_Click(object sender, EventArgs e)
 {
     if (message == "ADD")
     {
         using (ManageNotes note = new ManageNotes(newUser, false))
         {
             note.ShowDialog();
             newUser = (User)note.GetObjectData;
         }
     }
     else
     {
         using (ManageNotes note = new ManageNotes(userToBeEdited, false))
         {
             note.ShowDialog();
             userToBeEdited = (User)note.GetObjectData;
         }
     }
 }