private void progressBar_ValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e) { if (progressBar.Value == 0) { txtName.IsEnabled = true; btnEnter.IsEnabled = true; btnTable.IsEnabled = true; } if (progressBar.Value > 0) { txtName.IsEnabled = false; btnEnter.IsEnabled = false; if (!isEntered) { btnTable.IsEnabled = false; } titleBarControl.HideSettingsButton(); ChangeStatus($"{Properties.Resources.SbDownload} ({progressBar.Value}%)"); } if (progressBar.Value == 100) { progressBar.Value = 0; btnEnter.IsEnabled = true; if (LoadFromAPI.FullLoad > 0) { InfoFrameLoad(0); ThreadManager.WriteMessage(Properties.Resources.LoadedMessage); txtName.IsEnabled = false; isEntered = true; btnEnter.Content = Properties.Resources.LogOut; ChangeStatus(Properties.Resources.SbStats); } else { titleBarControl.ShowSettingsButton(); ChangeStatus(Properties.Resources.SbReady); } } }