Inheritance: IDisposable, INotifyPropertyChanged
        public AccountPicker(AccountPickerViewModel viewModel)
        {
            this.viewModel = viewModel;
            this.viewModel.AuthenticationChanged += this.ViewModel_AuthenticationChanged;

            this.InitializeComponent();
        }
Beispiel #2
0
        public AccountPicker(AccountPickerViewModel viewModel)
        {
            this.viewModel = viewModel;
            this.viewModel.AuthenticationChanged += this.ViewModel_AuthenticationChanged;

            this.InitializeComponent();
        }
        protected AzureServiceAuthenticator(IServiceProvider serviceProvider, string providerId)
        {
            this.accountPickerViewModel = new AccountPickerViewModel(serviceProvider, "ConnectedServices:" + providerId);
            this.accountPickerViewModel.PropertyChanged += this.AccountPickerViewModel_PropertyChanged;
            this.accountPickerViewModel.AuthenticationChanged += this.AccountPickerViewModel_AuthenticationChanged;
            this.CalculateIsAuthenticated();

            this.View = new AccountPicker(this.accountPickerViewModel);
        }
Beispiel #4
0
        protected AzureServiceAuthenticator(IServiceProvider serviceProvider, string providerId)
        {
            this.accountPickerViewModel = new AccountPickerViewModel(serviceProvider, "ConnectedServices:" + providerId);
            this.accountPickerViewModel.PropertyChanged       += this.AccountPickerViewModel_PropertyChanged;
            this.accountPickerViewModel.AuthenticationChanged += this.AccountPickerViewModel_AuthenticationChanged;
            this.CalculateIsAuthenticated();

            this.View = new AccountPicker(this.accountPickerViewModel);
        }