Пример #1
0
 private void AddNoteButton_Click(object sender, EventArgs e)
 {
     //if a ticket is selected, open the add note menu
     if (ticketIDLabel.Text != "..")
     {
         Form m = new AddNote();
         m.Show();
     }
     else
     {
         MessageBox.Show("Please select a Ticket before attempting to add a note");
     }
 }
 private void AddNoteButton_Click(object sender, EventArgs e)
 {
     //if a ticket is selected, open the add note menu
     if (ticketIDLabel.Text != "..")
     {
         Form m = new AddNote(currentTicket, CurrentUser.Name, codeHogEntities);
         m.FormClosed += AddNote_FormClosed;
         m.ShowDialog();
     }
     else
     {
         MessageBox.Show("Please select a Ticket before attempting to add a note");
     }
 }