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

            this.InitializeComponent();
        }
Exemplo n.º 2
0
        public AccountPicker(AccountPickerViewModel viewModel)
        {
            this.viewModel = viewModel;
            this.viewModel.AuthenticationChanged += this.ViewModel_AuthenticationChanged;

            this.InitializeComponent();
        }
Exemplo n.º 3
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);
        }
Exemplo n.º 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);
        }