Пример #1
0
 private void InitializeWaitForm()
 {
     waitForm               = new WaitForm();
     waitForm.TopLevel      = true;
     waitForm.TopMost       = true;
     waitForm.ShowInTaskbar = false;
 }
Пример #2
0
        ///<summary>
        /// Создает объект с параметрами по умолчанию
        ///</summary>
        public AnimatedThreadWorker()
        {
            _waitForm = StaticWaitFormProvider.WaitForm;

            _backgroundWorker = new BackgroundWorker();
            _backgroundWorker.WorkerSupportsCancellation = true;
            _backgroundWorker.WorkerReportsProgress      = true;
            _backgroundWorker.DoWork             += BackgroundWorkerDoWork;
            _backgroundWorker.ProgressChanged    += BackgroundWorkerProgressChanged;
            _backgroundWorker.RunWorkerCompleted += BackgroundWorkerRunWorkerCompleted;
        }
Пример #3
0
 static StaticWaitFormProvider()
 {
     waitForm = new WaitForm();
     waitForm.ShowInTaskbar = false;
 }
Пример #4
0
 private AnimatedThreadWorker()
 {
     waitForm = StaticWaitFormProvider.WaitForm;
 }