private void CalsButton_Click(object sender, EventArgs e) { using (CommentsTextForm commentsForm = new CommentsTextForm()) { commentsForm.Text = "CALS"; commentsForm.Comments = calsData; commentsForm.ShowDialog(); } }
private void JpegCommentsButton_Click(object sender, EventArgs e) { using (CommentsTextForm commentsForm = new CommentsTextForm()) { commentsForm.Text = "JPEG Comments"; commentsForm.Comments = jpegComments; commentsForm.ShowDialog(); } }