Esempio n. 1
0
        /// <summary>
        /// This timer will begin when the data has been imported or loaded. This event will check certain conditions
        /// and call functions that will load the unique data.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void FiltersTimer_Tick(object sender, EventArgs e)
        {
            if (!FilterUtils.FilterLoadProcessStarted)
            {
                FilterUtils.FilterLoadProcessStarted = true;
                Thread filtersThread = new Thread(() => {
                    LoadFilters();
                });
                filtersThread.Start();
            }


            if (FilterUtils.FiltersLoaded)
            {
                FilterUtils.FiltersLoaded = false;
                FiltersTimer.Stop();

                // Save the settings
                reportSettings.Save();

                // Show the dashboard
                ShowPage(Pages.Dashboard);
                ms_applicaitonMenuStrip.Enabled = true;

                // Lock the navigation functionality
                navigationSettings.Status = Navigation.Functionality.Unlocked;
            }
        }
Esempio n. 2
0
        /// <summary>
        /// This timer will begin when the data has been imported or loaded. This event will check certain conditions
        /// and call functions that will load the unique data.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void FiltersTimer_Tick(object sender, EventArgs e)
        {
            if (!FilterUtils.FilterLoadProcessStarted)
            {
                FilterUtils.FilterLoadProcessStarted = true;
                Thread filtersThread = new Thread(() => {
                    FilterUtils.LoadFilters(filters);
                });
                filtersThread.Start();
            }


            if (FilterUtils.FiltersLoaded)
            {
                pnl_loadingScreen.Visible = false;
                FilterUtils.FiltersLoaded = false;
                FiltersTimer.Stop();
                tblpnl_DashbaordPage.BringToFront();
                NavigationLocked = false;
            }
        }