Пример #1
0
        private void btnHijo_Click(object sender, EventArgs e)
        {
            FormEditarAfiliado form = new FormEditarAfiliado();

            form.Tag = "Hijo";
            form.ShowDialog();
            if (form.DialogResult == DialogResult.OK)
            {
                afiliadosAsociados.Add(form);
            }
        }
Пример #2
0
        private void btnAñadir_Click(object sender, EventArgs e)
        {
            FormEditarAfiliado form = new FormEditarAfiliado();

            form.Tag = "Agregar";
            form.ShowDialog();
            if (form.DialogResult == DialogResult.OK)
            {
                cargarAfiliados();
            }
        }
Пример #3
0
        private void btnEditar_Click(object sender, EventArgs e)
        {
            FormEditarAfiliado form = new FormEditarAfiliado();

            form.Tag = "Editar";
            form.cargarDatos(decimal.Parse(dataGridView1.SelectedRows[0].Cells[0].Value.ToString()));
            form.ShowDialog();
            if (form.DialogResult == DialogResult.OK)
            {
                cargarAfiliados();
            }
        }
Пример #4
0
        private void btnConyuge_Click(object sender, EventArgs e)
        {
            FormEditarAfiliado form = new FormEditarAfiliado();

            form.Tag = "Conyuge";
            form.ShowDialog();
            if (form.DialogResult == DialogResult.OK)
            {
                afiliadosAsociados.Add(form);
                btnConyuge.Enabled = false;
            }
        }