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

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

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

            frm.ShowDialog();
        }