private void RenderPublicKeyWithLease() { RSACryptoServiceProvider rsaProvider = GetDefaultKeyContainer(); qrCodeBox.Image = QRCodeUtils.RenderPublicKey(rsaProvider); Timer publicKeyLease = new Timer(); publicKeyLease.Tick += new EventHandler(TimerEventProcessor); publicKeyLease.Interval = 15000; publicKeyLease.Start(); setupNewTrustedDeviceLabel.Text = "Turn on bluetooth, pair it with the pc and click <Final Step> to synchronize"; startPairingButton.Text = "Final Step"; }
private void RenderPublicKey(RSACryptoServiceProvider rsaProvider) { qrCodeBox.Image = QRCodeUtils.RenderPublicKey(rsaProvider); }