Beispiel #1
0
        private void btnNewQuote_Click(object sender, EventArgs e)
        {
            //frmNewQuote obj = new frmNewQuote();
            //obj.Show();

            //if (cmbBranch.SelectedValue != null && cmbBranch.SelectedValue.ToString() == "0")
            //{
            //    MyMessageBox.ShowBox("Please select branch.", "Modal error message");

            //    cmbBranch.Focus();
            //    return;
            //}


            //if (cmbBranch.SelectedValue == null)
            //{
            //    MyMessageBox.ShowBox("Please select branch.", "Modal error message");
            //    cmbBranch.Focus();
            //    cmbBranch.Visible = true;
            //    lblBranch.Visible = true;
            //    return;
            //}


            var branch = cmbBranch.SelectedValue == null ? "" : cmbBranch.SelectedValue.ToString();

            btnNewQuote.Text = "Processing..";

            frmQuote obj = new frmQuote(branch, _ObjToken, true);

            obj.Show();
            this.Hide();
            btnNewQuote.Text = "New Quote";
        }
Beispiel #2
0
        private void btnNewQuote_Click(object sender, EventArgs e)
        {
            //frmNewQuote obj = new frmNewQuote();
            //obj.Show();

            frmQuote obj = new frmQuote();

            obj.Show();
            this.Hide();
        }
Beispiel #3
0
        private void btnInsurance_Click(object sender, EventArgs e)
        {
            if (cmbBranch.SelectedValue == null)
            {
                MyMessageBox.ShowBox("Please select branch.", "Modal error message");
                cmbBranch.Focus();
                cmbBranch.Visible = true;
                lblBranch.Visible = true;
                return;
            }

            var branch = cmbBranch.SelectedValue == null ? "" : cmbBranch.SelectedValue.ToString();

            btnInsurance.Text = "Processing..";

            frmQuote obj = new frmQuote(branch, _ObjToken, false);

            obj.Show();
            this.Hide();
            btnInsurance.Text = "Insurance Only";
        }