private void btnAdd_Click(object sender, EventArgs e) { Cursor.Current = Cursors.WaitCursor; frmReview frmReview = new frmReview() { TopMost = true }; frmReview.Text = "DTaS APPendix - Add Review"; frmReview.txtBDAppNo.Text = this.txtBDAppNo.Text; frmReview.txtBDAppID.Text = this.txtBDAppID.Text; frmReview.refreshReviewCombos(0); frmReview.btnSave.Text = "Add"; frmReview.lblUpdateTo.Visible = false; frmReview.cboReviewDate.Enabled = false; frmReview.cboReviewDate.Visible = false; frmReview.txtReviewDate.Location = frmReview.cboReviewDate.Location; frmReview.blnLoad = false; Cursor.Current = Cursors.Default; frmReview.ShowDialog(); RefreshForm(); }
private void btnUpdate_Click(object sender, EventArgs e) { Cursor.Current = Cursors.WaitCursor; frmReview frmReview = new frmReview() { TopMost = true }; frmReview.Text = "DTaS APPendix - Update Review"; frmReview.txtBDAppNo.Text = this.txtBDAppNo.Text; frmReview.txtBDAppID.Text = this.txtBDAppID.Text; frmReview.refreshReviewCombos(Convert.ToInt32(this.txtBDAppID.Text)); frmReview.btnSave.Text = "Update"; frmReview.blnLoad = false; Cursor.Current = Cursors.Default; frmReview.ShowDialog(); RefreshForm(); }
private void dgvReviews_MouseDoubleClick(object sender, MouseEventArgs e) { Cursor.Current = Cursors.WaitCursor; int intRow = dgvReviews.CurrentCell.RowIndex; frmReview frmReview = new frmReview() { TopMost = true }; frmReview.Text = "DTaS APPendix - Update Review"; frmReview.txtBDAppNo.Text = this.txtBDAppNo.Text; frmReview.refreshReviewCombos(Convert.ToInt32(this.txtBDAppID.Text)); frmReview.blnLoad = false; frmReview.cboReviewDate.SelectedValue = dgvReviews.Rows[intRow].Cells[0].Value; frmReview.btnSave.Text = "Update"; Cursor.Current = Cursors.Default; frmReview.ShowDialog(); RefreshForm(); }