private void EditButton_Click(object sender, EventArgs e) { HPS.BLL.TurnCancelCommentBLL.BLLTurnCancelComment_TKeys TurnCancelCommentKey = new HPS.BLL.TurnCancelCommentBLL.BLLTurnCancelComment_TKeys(); TurnCancelCommentKey.TurnCancelCommentID_int = (Int32?)this.TurnCancelCommentGridView.CurrentRow.Cells["colTurnCancelCommentID_int"].Value; TurnCancelCommentEntityForm TurnCancelComment = new TurnCancelCommentEntityForm(BaseEntityForm1.enmState.Edit, (DataTable)this.TurnCancelCommentGridView.DataSource, TurnCancelCommentKey); TurnCancelComment.ShowDialog(); }
private void NewButton_Click(object sender, EventArgs e) { TurnCancelCommentEntityForm TurnCancelComment = new TurnCancelCommentEntityForm((DataTable)this.TurnCancelCommentGridView.DataSource); TurnCancelComment.ShowDialog(); }