public LoginPage() { InitializeComponent(); LoadBackground(); if (settings.Accounts.Count > 0) { foreach (var name in settings.Accounts) { var user = Session.LoadSettings <UserSettings>(name); var login = new LoginAccount(user.Username, user.SummonerName, user.ProfileIcon); login.Click += Account_Click; login.Remove += Account_Remove; AccountList.Children.Insert(0, login); } AccountList.BeginStoryboard(App.FadeIn); } else { LoginGrid.BeginStoryboard(App.FadeIn); } }
private void ShowSavedAccounts_Click(object sender, RoutedEventArgs e) { LoginGrid.BeginStoryboard(App.FadeOut); AccountList.BeginStoryboard(App.FadeIn); }
private void AddAccountButt_Click(object sender, RoutedEventArgs e) { LoginGrid.BeginStoryboard(App.FadeIn); AccountList.BeginStoryboard(App.FadeOut); Dispatcher.Invoke(UserBox.Focus, System.Windows.Threading.DispatcherPriority.ApplicationIdle); }