Esempio n. 1
0
        public void LenarCampoComprador()
        {
            int    id     = Convert.ToInt32(TablaUsuarios.CurrentRow.Cells["id"].Value.ToString());
            string nombre = TablaUsuarios.CurrentRow.Cells["nombre"].Value.ToString() + " " + TablaUsuarios.CurrentRow.Cells["apellido"].Value.ToString();;

            CompraSuscripcion Compra = Owner as CompraSuscripcion;

            Compra.LlenarCamposComprador(id, nombre);
        }
Esempio n. 2
0
        //Eventos creados a mano

        public void llenarListaIntegrantes()
        {
            try
            {
                int    id       = Convert.ToInt32(TablaUsuarios.CurrentRow.Cells["id"].Value.ToString());
                int    di       = Convert.ToInt32(TablaUsuarios.CurrentRow.Cells["di"].Value.ToString());
                string nombre   = TablaUsuarios.CurrentRow.Cells["nombre"].Value.ToString();
                string apellido = TablaUsuarios.CurrentRow.Cells["apellido"].Value.ToString();

                CompraSuscripcion Compra = Owner as CompraSuscripcion;

                Compra.LlenarLista(id, di, nombre, apellido);
                this.Close();
            }
            catch (Exception Ex)
            {
                MessageBox.Show("Error " + Ex);
            }
        }