Exemplo n.º 1
0
        private void FxUpdateFiles()
        {
            string[] lFilesSource;

            try
            {
                lFilesSource = ClsFunctions.FxGetFilesFromPath(ClsVariables.gPathUpdate);
            }
            catch
            {
                lFilesSource = null;
            }

            if (lFilesSource != null)
            {
                foreach (string lFileSource in lFilesSource)
                {
                    string lFileName = ClsFunctions.FxGetFileName(lFileSource);

                    BgwProcess.ReportProgress(0, "Verificando " + lFileName + "...");

                    ClsFunctions.FxPause(0.1);

                    ClsFunctions.FxUpdateFile(lFileSource, ClsVariables.gPathBin);
                }
            }
        }
Exemplo n.º 2
0
        private void FxCancel()
        {
            ImgSplashScreen.Enabled = true;

            LblMessage.Parent = ImgSplashScreen;

            Color ObjColor = Color.FromArgb(100, Color.Black);

            LblMessage.BackColor = ObjColor;

            LblMessage.Visible = true;

            BgwProcess.RunWorkerAsync();
        }
Exemplo n.º 3
0
        private void FxDoWork()
        {
            if (lSettingIni == false)
            {
                BgwProcess.ReportProgress(0, "Inicializando sistema...");

                ClsFunctions.FxPause(1);

                BgwProcess.ReportProgress(0, "Verificando directorios de trabajo...");

                ClsFunctions.FxPause(0.1);

                ClsFunctions.FxCreateWorkingPaths();

                BgwProcess.ReportProgress(0, "Obteniendo configuración inicial...");

                ClsFunctions.FxPause(0.1);

                lSettingIni = ClsFunctions.FxGetSettingIni();
            }

            if (lSettingIni == true)
            {
                BgwProcess.ReportProgress(0, "Obteniendo configuración...");

                ClsFunctions.FxPause(0.1);

                bool lSettings = ClsFunctions.FxGetSettings();

                if (lSettings == true)
                {
                    FxUpdateFiles();

                    BgwProcess.ReportProgress(0, "Bienvenido!!!");

                    ClsFunctions.FxPause(1);
                }
            }
        }