private void Window_Loaded(object sender, RoutedEventArgs e) { userAuthorization.PreAuthorization(); }