Пример #1
0
        private void btnAddPolicy_Click(object sender, EventArgs e)
        {
            Save();

            if (GetPolicyType() != PolicyType.КАСКО)
                cbPayment.SelectedIndex = 0;

            formPolicyList fPolicyList = new formPolicyList(_account, GetPolicyType(), cbPayment.SelectedIndex, cbOwner.SelectedValue.ToString());
            if (fPolicyList.ShowDialog() == DialogResult.OK)
                FillTable();
        }
Пример #2
0
        private void btnAddPolicy_Click(object sender, EventArgs e)
        {
            Save();

            if (GetPolicyType() != PolicyType.КАСКО)
            {
                cbPayment.SelectedIndex = 0;
            }

            formPolicyList fPolicyList = new formPolicyList(_account, GetPolicyType(), cbPayment.SelectedIndex, cbOwner.SelectedValue.ToString());

            if (fPolicyList.ShowDialog() == DialogResult.OK)
            {
                FillTable();
            }
        }