private void EditButton_Click(object sender, EventArgs e) { HPS.BLL.LadeCommentBLL.BLLLadeComment_TKeys LadeCommentKey = new HPS.BLL.LadeCommentBLL.BLLLadeComment_TKeys(); LadeCommentKey.LadeCommentID_int = (Int32?)this.LadeCommentGridView.CurrentRow.Cells["colLadeCommentID_int"].Value; LadeCommentEntityForm LadeComment = new LadeCommentEntityForm(BaseEntityForm1.enmState.Edit, (DataTable)this.LadeCommentGridView.DataSource, LadeCommentKey); LadeComment.ShowDialog(); }
private void NewButton_Click(object sender, EventArgs e) { LadeCommentEntityForm LadeComment = new LadeCommentEntityForm((DataTable)this.LadeCommentGridView.DataSource); LadeComment.ShowDialog(); }