private void EditButton_Click(object sender, EventArgs e) { HPS.BLL.LadeCancelCommentBLL.BLLLadeCancelComment_TKeys LadeCancelCommentKey = new HPS.BLL.LadeCancelCommentBLL.BLLLadeCancelComment_TKeys(); LadeCancelCommentKey.LadeCanceltCommentID_int = (Int32?)this.LadeCancelCommentGridView.CurrentRow.Cells["colLadeCanceltCommentID_int"].Value; LadeCancelCommentEntityForm LadeCancelComment = new LadeCancelCommentEntityForm(BaseEntityForm1.enmState.Edit, (DataTable)this.LadeCancelCommentGridView.DataSource, LadeCancelCommentKey); LadeCancelComment.ShowDialog(); }
private void NewButton_Click(object sender, EventArgs e) { LadeCancelCommentEntityForm LadeCancelComment = new LadeCancelCommentEntityForm((DataTable)this.LadeCancelCommentGridView.DataSource); LadeCancelComment.ShowDialog(); }