private void comment_Click(object sender, EventArgs e) { string fullName = SQL.getFullName(SQL.getOwnerUserID(memberNameToolStripMenuItem.Text)); if (currentTasks.SelectedItem != null) { AddComment frm = new AddComment(userComments, currentTasks, fullName); frm.ShowDialog(); } else if (completedTasks.SelectedItem != null) { AddComment frm = new AddComment(userComments, completedTasks, fullName); frm.ShowDialog(); } }
private void comment_Click(object sender, EventArgs e) { AddComment frm = new AddComment(userComments); frm.ShowDialog(); }