Ejemplo n.º 1
0
        private void Window_Initialized(object sender, EventArgs e)
        {
            // Update EloBuddy
            LoaderUpdate.UpdateSystem();

            // Set UI
            RememberCheckBox.IsChecked = Settings.Instance.RememberCredentials;

            // Auto login
            if (Settings.Instance.RememberCredentials && Settings.Instance.UserCredentials != null && !Settings.Instance.UserCredentials.IsEmpty)
            {
                UsernameTextBox.Text     = Settings.Instance.UserCredentials.Username;
                PasswordTextBox.Password = Settings.Instance.UserCredentials.Password;
                DoLogin(Settings.Instance.UserCredentials.Username, Settings.Instance.UserCredentials.Password, true);
            }

            Events.RaiseOnLoginWindowInitialized(this, e);
        }
Ejemplo n.º 2
0
 private void UpdateStatusLabel_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
 {
     LoaderUpdate.UpdateSystem();
 }