Esempio n. 1
0
 public void TestAccountsSettingsPane()
 {
     Assert.Throws <COMException>(() => AccountsSettingsPaneInterop.GetForWindow(new IntPtr(0)));
     Assert.Throws <COMException>(() => AccountsSettingsPaneInterop.ShowAddAccountForWindowAsync(new IntPtr(0)));
     Assert.Throws <COMException>(() => AccountsSettingsPaneInterop.ShowManageAccountsForWindowAsync(new IntPtr(0)));
 }
 private async void button3_Click(object sender, EventArgs e)
 {
     AccountsSettingsPane accountsSettingsPane = AccountsSettingsPaneInterop.GetForWindow(this.Handle);
     // accountsSettingsPane.AccountCommandsRequested += AccountsSettingsPane_AccountCommandsRequested;
     await AccountsSettingsPaneInterop.ShowManagedAccountsForWindowAsync(this.Handle);
 }