Пример #1
0
        public void Editar()
        {
            if (dg.Rows.Count == 0)
            {
                return;
            }
            E_Gasto obj = new E_Gasto();

            obj._DESCRIPCION = dg.CurrentRow.Cells["DESCRIPCION"].Value.ToString();
            obj._ESTADO      = dg.CurrentRow.Cells["ESTADO"].Value.ToString();
            obj._ID_GASTO    = Convert.ToInt32(dg.CurrentRow.Cells["_ID"].Value.ToString());
            Frm_Gasto frm = new Frm_Gasto();

            frm.Recibir_Datos(obj);
            frm.ShowDialog();
        }
Пример #2
0
        private void btn_nuevo_Click(object sender, EventArgs e)
        {
            Frm_Gasto frm = new Frm_Gasto();

            frm.ShowDialog();
        }