Ejemplo n.º 1
0
        private void deleteAssystToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmAssyst frmAssyst = new frmAssyst()
            {
                TopMost = true
            };

            frmAssyst.Text = "DTaS APPendix - Delete Assyst Case";
            frmAssyst.txtAssRef.Enabled  = false;
            frmAssyst.txtAssRef.Visible  = false;
            frmAssyst.cboBDAppNo.Enabled = false;
            frmAssyst.btnSave.Text       = "Delete";
            frmAssyst.btnSaveClose.Text  = "Delete && Close";
            frmAssyst.ShowDialog();
            RefreshForm();
        }
Ejemplo n.º 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();
                }
            }
        }
Ejemplo n.º 3
0
        private void amendAssystToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;

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

            frmAssyst.Text = "DTaS APPendix - Amend Assyst Case";
            frmAssyst.txtAssRef.Enabled = false;
            frmAssyst.txtAssRef.Visible = false;

            Cursor.Current = Cursors.Default;

            frmAssyst.ShowDialog();
            RefreshForm();
        }
Ejemplo n.º 4
0
        private void dgvAssyst_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;

            int intRow  = dgvAssyst.CurrentCell.RowIndex;
            int intBRow = dgvBDApps.CurrentCell.RowIndex;

            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(dgvAssyst.Rows[intRow].Cells[0].Value)); // Assyst reference

            Cursor.Current = Cursors.Default;

            frmAssyst.ShowDialog();
            RefreshForm();
        }