private void item_cobros_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e) { frm_abonos f = new frm_abonos(); f.MdiParent = this.MdiParent; f.Show(); }
private void aBONOSToolStripMenuItem_Click(object sender, EventArgs e) { if (abono == null) { abono = new frm_abonos(); abono.MdiParent = this; abono.FormClosed += new FormClosedEventHandler(frm_abonos_form_closed); abono.Show(); } }
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 frm_abonos_form_closed(object sender, FormClosedEventArgs e) { abono = null; }