Esempio n. 1
0
        private void btn_edit_Click(object sender, EventArgs e)
        {
            int?id = getId();

            if (id != null)
            {
                sub_frm.modal_domicilios modal = new sub_frm.modal_domicilios(id);
                modal.ShowDialog();
                dtg_domicilios.DataSource = domicilios.Consultar();
            }
        }
Esempio n. 2
0
 private void btn_crear_Click(object sender, EventArgs e)
 {
     sub_frm.modal_domicilios modal = new sub_frm.modal_domicilios();
     modal.ShowDialog();
     dtg_domicilios.DataSource = domicilios.Consultar();
 }