예제 #1
0
파일: Menu.cs 프로젝트: jsancvil/CES
        private void nuevoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Catalogos.ProductoAlta frm = new Catalogos.ProductoAlta();
            var _frm = Application.OpenForms["ProductoAlta"] as Catalogos.ProductoAlta;

            ofunciones.cargarForm(frm, _frm, this);
        }
예제 #2
0
파일: Productos.cs 프로젝트: jsancvil/CES
        private void btnNuevo_Click(object sender, EventArgs e)
        {
            ProductoAlta frm  = new ProductoAlta();
            var          menu = Application.OpenForms["menu"] as Menu;
            var          _frm = Application.OpenForms["ProductoAlta"] as Catalogos.ProductoAlta;

            ofunciones.cargarForm(frm, _frm, menu);
        }
예제 #3
0
파일: Productos.cs 프로젝트: jsancvil/CES
        private void gvData_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                string idProducto = gvData.Rows[e.RowIndex].Cells["idProducto"].FormattedValue.ToString();

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