Example #1
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     if (!VistaGlassHelper.ExtendGlass(this, -1, -1, -1, -1))
     {
         UseAlternativeStyle();
     }
     listBox.Focus();
 }
Example #2
0
        private void Window_Loaded_1(object sender, RoutedEventArgs e)
        {
            VistaGlassHelper.ExtendGlass(this, -1, -1, -1, -1);
            string serverName = SolutionInfo.GetDefaultServerName();

            if (serverName != null)
            {
                serverNameTextBox.Text            = serverName;
                serverNameTextBox.SelectionStart  = serverName.Length;
                serverNameTextBox.SelectionLength = 0;
                serverNameTextBox.Focus();
            }
        }
Example #3
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            if (App.StartParameters.ExecuteType == ExecuteTypes.Restart)
            {
                if (loginWithTicket(App.StartParameters.OneOffTicket))
                {
                    return;
                }
            }

            Title = string.Format(Title, App.SelectedSolution.SolutionFriendlyName);
            if (!VistaGlassHelper.ExtendGlass(this, -1, -1, -1, -1))
            {
                UseAlternativeStyle();
            }
            FillNames();
            SelectLastLogin();
            if (App.RunDefaultCredential && passwordBox.Password.Length > 0 &&
                !Keyboard.IsKeyDown(Key.LeftCtrl) && !Keyboard.IsKeyDown(Key.RightCtrl))
            {
                TryToLogin();
            }
        }