Пример #1
0
        private void dgvBDApps_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            int intRow = dgvBDApps.CurrentCell.RowIndex;

            //MessageBox.Show("'" + Convert.ToString(dgvBDApps.Rows[thisrow].Cells[2].Value + "'"), Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Information);

            //MessageBox.Show("Double Click will open a form to display/update Application Details", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Information);

            frmDTaSApp frmDTaS = new frmDTaSApp()
            {
                TopMost = true
            };

            Cursor.Current = Cursors.WaitCursor;

            frmDTaS.Text = "DTaS APPendix - Amend Application Details";
            frmDTaS.txtBDAppNo.Enabled = false;
            //frmDTaS.txtBDAppNo.Visible = false;
            frmDTaS.txtBDAppID.Enabled = false;
            frmDTaS.txtBDAppID.Visible = false;
            frmDTaS.cboBDAppNo.Text    = Convert.ToString(dgvBDApps.Rows[intRow].Cells[1].Value);

            Cursor.Current = Cursors.Default;

            frmDTaS.ShowDialog();
            RefreshForm();
        }
Пример #2
0
        private void dgvResults_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            {
                int intRow = dgvResults.CurrentCell.RowIndex;

                if (this.Text == "Search Assyst Cases")
                {
                    Cursor.Current = Cursors.WaitCursor;

                    frmAssyst frmassyst = new frmAssyst()
                    {
                        TopMost = true
                    };

                    frmassyst.Text = "DTaS APPendix - Amend Assyst Case";
                    frmassyst.cboAssRef.Enabled       = false;
                    frmassyst.txtAssRef.Visible       = false;
                    frmassyst.cboBDAppNo.Enabled      = false;
                    frmassyst.cboAssRef.SelectedIndex = frmassyst.cboAssRef.FindStringExact(Convert.ToString(dgvResults.Rows[intRow].Cells[1].Value)); // Assyst reference

                    Cursor.Current = Cursors.Default;

                    frmassyst.ShowDialog();
                }
                else
                {
                    frmDTaSApp frmDTaS = new frmDTaSApp()
                    {
                        TopMost = true
                    };

                    Cursor.Current = Cursors.WaitCursor;

                    frmDTaS.Text = "DTaS APPendix - Amend Application Details";
                    frmDTaS.txtBDAppNo.Enabled = false;
                    //frmDTaS.txtBDAppNo.Visible = false;
                    frmDTaS.txtBDAppID.Enabled = false;
                    frmDTaS.txtBDAppID.Visible = false;
                    frmDTaS.cboBDAppNo.Text    = Convert.ToString(dgvResults.Rows[intRow].Cells[1].Value);

                    Cursor.Current = Cursors.Default;

                    frmDTaS.ShowDialog();
                }
            }
        }
Пример #3
0
        private void updateApplicationToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //MessageBox.Show("This will open a form to allow the user to select a BDApp No. and/or BDApp Name then update the Application Details", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Information);

            frmDTaSApp frmDTaS = new frmDTaSApp()
            {
                TopMost = true
            };

            Cursor.Current = Cursors.WaitCursor;

            frmDTaS.Text = "DTaS APPendix - Amend Application Details";
            frmDTaS.txtBDAppNo.Enabled = false;
            //frmDTaS.txtBDAppNo.Visible = false;

            Cursor.Current = Cursors.Default;

            frmDTaS.ShowDialog();
            RefreshForm();
        }
Пример #4
0
        private void deleteApplicationToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmDTaSApp frmDTaS = new frmDTaSApp()
            {
                TopMost = true
            };

            Cursor.Current = Cursors.WaitCursor;

            frmDTaS.Text = "DTaS APPendix - Delete Application Details";
            frmDTaS.txtBDAppNo.Enabled     = false;
            frmDTaS.txtBDAppNo.Visible     = false;
            frmDTaS.txtBDAppID.Enabled     = false;
            frmDTaS.txtBDAppID.Visible     = false;
            frmDTaS.btnAmendNumber.Enabled = false;
            frmDTaS.btnAmendNumber.Visible = false;
            frmDTaS.btnSave.Text           = "Delete";
            frmDTaS.btnSaveClose.Text      = "Delete && Close";

            Cursor.Current = Cursors.Default;

            frmDTaS.ShowDialog();
            RefreshForm();
        }
Пример #5
0
        private void addApplicationToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // MessageBox.Show("This will open a form to allow the user to add a new application", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Information);

            frmDTaSApp frmDTaS = new frmDTaSApp()
            {
                TopMost = true
            };

            Cursor.Current = Cursors.WaitCursor;

            frmDTaS.Text = "DTaS APPendix - Add Application Details";
            frmDTaS.cboBDAppNo.Enabled     = false;
            frmDTaS.cboBDAppNo.Visible     = false;
            frmDTaS.btnAmendNumber.Enabled = false;
            frmDTaS.btnAmendNumber.Visible = false;
            frmDTaS.txtBDAppNo.Left        = frmDTaS.cboBDAppNo.Left;
            frmDTaS.btnReviews.Enabled     = false;

            Cursor.Current = Cursors.Default;

            frmDTaS.ShowDialog();
            RefreshForm();
        }