Ejemplo n.º 1
0
 // triggers after the window has been shown
 private void mainWin_ContentRendered(object sender, EventArgs e)
 {
     if (Settings.Instance.UpdateAssembliesOnStart && Settings.Instance.InstalledAddons.Count > 0)
     {
         LoaderUpdate.UpdateInstalledAddons();
     }
 }
 private void UpdateAssembliesButton_Click(object sender, RoutedEventArgs e)
 {
     if (Settings.Instance.InstalledAddons.Count > 0)
     {
         LoaderUpdate.UpdateInstalledAddons();
     }
 }
Ejemplo n.º 3
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.º 4
0
 private void UpdateStatusLabel_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
 {
     LoaderUpdate.UpdateSystem();
 }