private void item_productos_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e) { inventario inven = new inventario(); inven.MdiParent = this.MdiParent; inven.Show(); }
private void ingresoProductoToolStripMenuItem_Click(object sender, EventArgs e) { DataTable dt = ObtenerPermisos.Permisos(seguridad.Conexion.User, "116"); if (dt.Rows.Count > 0) { //ClearAllMDIs(); LimpiarMDI(); if (inven == null) { inven = new inventario(); inven.MdiParent = this; inven.FormClosed += new FormClosedEventHandler(inventario_form_closed); inven.Show(); } } else { MessageBox.Show("No posee los permisos necesarios para acceder al modulo"); } }
private void Form1_Load(object sender, EventArgs e) { // conexion odbc //try //{ // seguridad.Conexion.DSN = "crm"; // seguridad.Conexion.PassWord = "******"; //} //catch (Exception ex) //{ // MessageBox.Show(ex.Message); //} BloquearMDI(); Bloqueo.DesbloquearMDI(menuStrip1); //------------------------ tipo = OpBD.VerificarTipoUsuario(); if (tipo == "administrador") { //estadisticasToolStripMenuItem.Enabled = false; seguridadToolStripMenuItem.Enabled = true; foreach (ToolStripMenuItem item_seg in seguridadToolStripMenuItem.DropDownItems) { item_seg.Enabled = true; } } cal = null; con = null; neg = null; em = null; per = null; pro = null; cliente_form = null; emp = null; ini = null; empleado_form = null; caso = null; bitacora = null; ap = null; modap = null; crearu = null; edi = null; desh = null; asper = null; edper = null; elper = null; camb = null; secundarios = null; inven = null; inv_bod = null; precios = null; abono = null; balance = null; exis = null; compra = null; if (ini == null) { ini = new Form_inicio(); ini.MdiParent = this; ini.FormClosed += new FormClosedEventHandler(frm_inicio_FormClosed); ini.Show(); } }
private void inventario_form_closed(object sender, FormClosedEventArgs e) { inven = null; }