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(); }
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(); } }