Example #1
0
        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();
        }
Example #2
0
        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();
        }
Example #3
0
        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();
        }