Пример #1
0
        private void btnNuevo_Click(object sender, EventArgs e)
        {
            UsuarioAlta frm  = new UsuarioAlta();
            var         menu = Application.OpenForms["menu"] as Menu;
            var         _frm = Application.OpenForms["UsuarioAlta"] as Config.UsuarioAlta;

            ofunciones.cargarForm(frm, _frm, menu);
        }
Пример #2
0
        private void gvData_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                string idUsuario = gvData.Rows[e.RowIndex].Cells["idUsuario"].FormattedValue.ToString();

                UsuarioAlta frm  = new UsuarioAlta();
                var         _frm = Application.OpenForms["UsuarioAlta"] as UsuarioAlta;
                var         menu = Application.OpenForms["menu"] as Menu;
                frm._idUsuario = int.Parse(idUsuario);
                ofunciones.cargarForm(frm, null, menu);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }