Inheritance: IDisposable, INotifyPropertyChanged
コード例 #1
0
        public AccountPicker(AccountPickerViewModel viewModel)
        {
            this.viewModel = viewModel;
            this.viewModel.AuthenticationChanged += this.ViewModel_AuthenticationChanged;

            this.InitializeComponent();
        }
コード例 #2
0
        public AccountPicker(AccountPickerViewModel viewModel)
        {
            this.viewModel = viewModel;
            this.viewModel.AuthenticationChanged += this.ViewModel_AuthenticationChanged;

            this.InitializeComponent();
        }
コード例 #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);
        }
コード例 #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);
        }