private void periodicamenteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form Frm = this.MdiChildren.FirstOrDefault(y => y is FrmExportarPeriodicamente);

            if (Frm != null)
            {
                Frm.BringToFront();
                return;
            }
            FrmExportarPeriodicamente obj = new FrmExportarPeriodicamente();

            obj.MdiParent = this;
            obj.Show();
        }
Exemple #2
0
        private void tmExiste_Tick(object sender, EventArgs e)
        {
            FrmExportarPeriodicamente Frm = new FrmExportarPeriodicamente();



            contador++;
            if (contador == 1)
            {
                existe(ruta_seguro, pbSeguro);
            }
            if (contador == 10)
            {
                existe(ruta_medico_envia, pbMedicoEnvia);
            }
            if (contador == 15)
            {
                existe(ruta_servicio, pbServicio);
            }
            if (contador == 20)
            {
                existe(ruta_medico_servicio, pbMedicoServicio);
            }
            if (contador == 25)
            {
                existe(ruta_usuario, pbUsuario);
            }
            if (contador == 30)
            {
                existe(ruta_unidad_negocio, pbUn);
            }
            if (contador == 35)
            {
                existe(ruta_cliente, pbCliente);
            }
            if (contador == 40)
            {
                existe(ruta_tiempo, pbTiempo);
            }
            if (contador == 45)
            {
                existe(ruta_venta, pbVenta);
            }
            if (contador == 50)
            {
                tmOk.Enabled = false;
                if (bandera == true)
                {
                    MessageBox.Show("Error, Verifique los archivos para importar", "Sistema DW Future", MessageBoxButtons.OK, MessageBoxIcon.Error);

                    btnAceptar2.Enabled = true;
                    visible(false);
                }
                else
                {
                    /*Existen todos los archivos */
                    button2.Enabled     = true;
                    btnAceptar2.Enabled = true;
                    btnAceptar2.Enabled = true;
                }
            }
        }