Пример #1
0
        private void btnRenew_Click(object sender, EventArgs e)
        {
            frmRenewPolicy objRE = new frmRenewPolicy();

            objRE.Show();
            this.Hide();
        }
Пример #2
0
        private void btnRenew_Click(object sender, EventArgs e)
        {
            if (cmbBranch.SelectedValue == null)
            {
                MyMessageBox.ShowBox("Please select branch.", "Modal error message");
                cmbBranch.Focus();
            }
            var branch = cmbBranch.SelectedValue == null ? "" : cmbBranch.SelectedValue.ToString();

            frmRenewPolicy objRE = new frmRenewPolicy(_ObjToken, branch);

            objRE.Show();
            this.Hide();
        }