public void TestUserConsentVerifier() { var operation = UserConsentVerifierInterop.RequestVerificationForWindowAsync(new IntPtr(0), "message"); Assert.NotNull(operation); }
private async void Button1_Click(object sender, EventArgs e) { await UserConsentVerifierInterop.RequestVerificationForWindowAsync(this.Handle, "Enter PIN for me:"); }
private async void button2_Click(object sender, EventArgs e) { await UserConsentVerifierInterop.RequestVerificationForWindowAsync(this.Handle, "Are you okay with that?!"); }