Пример #1
0
        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);
            }
        }
Пример #2
0
 private void ShowSavedAccounts_Click(object sender, RoutedEventArgs e)
 {
     LoginGrid.BeginStoryboard(App.FadeOut);
     AccountList.BeginStoryboard(App.FadeIn);
 }
Пример #3
0
 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);
 }