private OAuthLoginFlowWindow(OAuthCredentials credentials, IEnumerable<string> scopes) : base(GoogleCloudExtension.Resources.OAuthFlowWindowTitle) { _flow = new OAuthLoginFlow( credentials, scopes, successUrl: SucessUrl, failureUrl: FailureUrl); ViewModel = new OAuthLoginFlowViewModel(this); var windowContent = new OauthLoginFlowWindowContent { DataContext = ViewModel, }; Content = windowContent; StartLoginFlow(); }
private OAuthLoginFlowWindow(OAuthCredentials credentials, IEnumerable <string> scopes) : base(GoogleCloudExtension.Resources.OAuthFlowWindowTitle) { _flow = new OAuthLoginFlow( credentials, scopes, successUrl: SucessUrl, failureUrl: FailureUrl); ViewModel = new OAuthLoginFlowViewModel(this); var windowContent = new OauthLoginFlowWindowContent { DataContext = ViewModel, }; Content = windowContent; StartLoginFlow(); }