示例#1
0
文件: Menu.cs 项目: jsancvil/CES
        private void nuevoToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Catalogos.GrupoAlta frm = new Catalogos.GrupoAlta();
            var _frm = Application.OpenForms["GrupoAlta"] as Catalogos.GrupoAlta;

            frm._idGrupo = 0;
            ofunciones.cargarForm(frm, _frm, this);
        }
示例#2
0
        private void btnNuevo_Click(object sender, EventArgs e)
        {
            GrupoAlta frm  = new GrupoAlta();
            var       menu = Application.OpenForms["menu"] as Menu;
            var       _frm = Application.OpenForms["GrupoAlta"] as Catalogos.GrupoAlta;

            frm._idGrupo = 0;
            ofunciones.cargarForm(frm, _frm, menu);
        }
示例#3
0
        private void gvData_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                string idGrupo = gvData.Rows[e.RowIndex].Cells["idGrupo"].FormattedValue.ToString();

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