예제 #1
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            foreach (DataGridViewRow row in dgvPolicy.Rows)
            {
                bool check;
                bool.TryParse(row.Cells["check"].Value.ToString(), out check);

                if (check)
                {
                    int idPolicy;
                    int.TryParse(row.Cells["idPolicy"].Value.ToString(), out idPolicy);

                    _account.BindWithPolicy(idPolicy, _paymentNumber);
                }
            }

            PolicyList policyList = PolicyList.getInstance();

            policyList.ReLoad();
        }