private void OnApplicationInitialized(object sender, EventArgs e) { var serversWithAuthentication = from server in App.Current.Servers where server.AuthenticationType == AgsServerAuthenticationType.Yes select server; var workingStatusController = new ApplicationWorkingStatusController(); var uriNavigator = new DefaultBrowserUriNavigator(); _viewModel = new LicensePageModel( serversWithAuthentication, App.Current.Messenger, workingStatusController, uriNavigator, App.Current.LicenseManager); _viewModel.PropertyChanged += _ViewModelPropertyChanged; this.DataContext = _viewModel; _OnPageCompleteChanged(); }