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); }