Interaction logic for OauthLoginFlowWindowContent.xaml
Inheritance: System.Windows.Controls.UserControl
        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();
        }
Exemple #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();
        }