예제 #1
0
        public void Editar()
        {
            if (dg.Rows.Count == 0)
            {
                return;
            }
            E_Sector_Economico obj = new E_Sector_Economico();

            obj._DESCRIPCION         = dg.CurrentRow.Cells["DESCRIPCION"].Value.ToString();
            obj._ESTADO              = dg.CurrentRow.Cells["ESTADO"].Value.ToString();
            obj._ID_SECTOR_ECONOMICO = Convert.ToInt32(dg.CurrentRow.Cells["_ID"].Value.ToString());
            obj._PUNTOS              = Convert.ToDouble(dg.CurrentRow.Cells["PUNTOS"].Value.ToString());
            Frm_Sector_Economico frm = new Frm_Sector_Economico();

            frm.Recibir_Datos(obj);
            frm.ShowDialog();
        }
예제 #2
0
        private void btn_nuevo_Click(object sender, EventArgs e)
        {
            Frm_Sector_Economico frm = new Frm_Sector_Economico();

            frm.ShowDialog();
        }