Esempio n. 1
0
        protected override void btnCrear_Click(object sender, EventArgs e)
        {
            base.btnCrear_Click(sender, e);

            var crear = new CrearMunicipio(_idDep, Load);

            crear.MdiParent = this.MdiParent;
            crear.Show();
        }
Esempio n. 2
0
        protected override void btnActualizar_Click(object sender, EventArgs e)
        {
            base.btnActualizar_Click(sender, e);
            var selectedRow = dataGridView1.SelectedRows[0].Cells[0].Value;

            var municipio = DbContext.Instance.Find <Municipios>($"Select * from Municipios where Id={selectedRow}");

            var crear = new CrearMunicipio(_idDep, Load, municipio);

            crear.MdiParent = this.MdiParent;
            crear.Show();
        }