Inheritance: GoogleCloudExtension.Utils.ViewModelBase
        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();
        }
示例#2
0
        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();
        }