public static void ShowComment(question_data data) { frmComment comment = new frmComment(data); comment.Owner = _this; comment.ShowDialog(); }
private void dataGridViewSalesLeads_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { frmComment newCommnt = new frmComment(); CommentHandler newhandler = new CommentHandler(newCommnt, new Comment.Comment()); newCommnt.SelectedSalesLeadsID = (int)dataGridViewSalesLeads.SelectedRows[0].Cells[0].Value; newCommnt.Show(); }