public MainWindow() { InitializeComponent(); backgroundWorker = ((BackgroundWorker)this.FindResource("backgroundWorker")); backgroundWorkerLoadAudio = ((BackgroundWorker)this.FindResource("backgroundWorkerLoadAudio")); backgroundWorkerWriteDB = ((BackgroundWorker)this.FindResource("backgroundWorkerWriteDB")); backgroundWorkerWriteSeverAudio = ((BackgroundWorker)this.FindResource("backgroundWorkerWriteSeverAudio")); FIleTools.CreateDirectory(FIleTools.NameDirectoryAudio); FIleTools.CreateDirectory(FIleTools.NameDirectoryStorage); //StartNewThread(); textboxCountWord.Text = App.dataVariable.CountWordLearning.ToString(); textboxCounSelekt.Text = App.dataVariable.CountSelectWord.ToString(); textboxCountRepetition.Text = App.dataVariable.CountWordRepetition.ToString(); textboxCountMlSekRepetition.Text = App.dataVariable.CountMilisek.ToString(); textboxCountMlSekDelayRepetition.Text = App.dataVariable.CountMilisekDelay.ToString(); textboxCountTimeWork.Text = App.dataVariable.CountTimeWork.ToString(); textboxCountWordTrenings.Text = App.dataVariable.CountWordTrenings.ToString(); textboxCountWordSprint.Text = App.dataVariable.CountWordSprint.ToString(); gbrash = (SolidColorBrush)textblockMessage.Foreground; if (App.dataVariable.IsUpdateState == 1) { checkboxStatus.IsChecked = true; } }