Exemple #1
0
        /// <summary>
        /// Loads the working panels
        /// </summary>
        private void LoadPanels()
        {
            workingInfoEnum = PanelLoadingEnum.LoadAll;

            // Configure a BackgroundWorker to perform your long running operation.
            BackgroundWorker bg = new BackgroundWorker();
            bg.DoWork += new DoWorkEventHandler(bg_DoWork);
            bg.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bg_RunWorkerCompleted);

            // Start the worker.
            bg.RunWorkerAsync();

            workingInfoForm = new WorkingInfoForm(LanguageController.GetText(StringKeys.Working),
                  LanguageController.GetText(StringKeys.PreparingSystem));
            workingInfoForm.ShowDialog();
        }
Exemple #2
0
        private void administrationMenuItem_TransparentPanelMouseClick(object sender, MouseEventArgs e)
        {
            workingInfoEnum = PanelLoadingEnum.LoadingAdministrationPanel;

            // Configure a BackgroundWorker to perform your long running operation.
            BackgroundWorker bg = new BackgroundWorker();
            bg.DoWork += new DoWorkEventHandler(bg_DoWork);
            bg.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bg_RunWorkerCompleted);

            // Start the worker.
            bg.RunWorkerAsync();

            if (administrationPanel == null)
            {
                workingInfoForm = new WorkingInfoForm(LanguageController.GetText(StringKeys.Working),
                    LanguageController.GetText(StringKeys.LoadingDataTitle));
                workingInfoForm.ShowDialog();
            }
        }