From aa58a7aee432025290c000cdd453a1f135adfef4 Mon Sep 17 00:00:00 2001 From: benbierens Date: Sat, 9 Nov 2024 02:54:48 +0100 Subject: [PATCH] add instructions link QR --- DevconBoothImages/MainWindow.xaml | 2 ++ DevconBoothImages/MainWindow.xaml.cs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/DevconBoothImages/MainWindow.xaml b/DevconBoothImages/MainWindow.xaml index 126c042..07d2ac6 100644 --- a/DevconBoothImages/MainWindow.xaml +++ b/DevconBoothImages/MainWindow.xaml @@ -19,6 +19,8 @@ + + diff --git a/DevconBoothImages/MainWindow.xaml.cs b/DevconBoothImages/MainWindow.xaml.cs index 1539c25..0c90379 100644 --- a/DevconBoothImages/MainWindow.xaml.cs +++ b/DevconBoothImages/MainWindow.xaml.cs @@ -33,7 +33,6 @@ namespace DevconBoothImages private async void Button_Click(object sender, RoutedEventArgs e) { - // image Log("Getting image..."); var file = await imageGenerator.Generate(); @@ -60,7 +59,7 @@ namespace DevconBoothImages using (QRCodeData qrCodeData = qrGenerator.CreateQrCode(text, QRCodeGenerator.ECCLevel.Default)) using (PngByteQRCode qrCode = new PngByteQRCode(qrCodeData)) { - byte[] qrCodeImage = qrCode.GetGraphic(12); + byte[] qrCodeImage = qrCode.GetGraphic(7); using (var ms = new MemoryStream(qrCodeImage)) { var img = Image.FromStream(ms); @@ -150,6 +149,7 @@ namespace DevconBoothImages ImgLocalCid.Source = GenerateQr(currentLocalCid); ImgTestnetCid.Source = GenerateQr(currentPublicCid); + ImgInstructions.Source = GenerateQr("https://github.com/codex-storage/codex-testnet-starter/blob/master/SETUP_DEVCONNET.md"); } private void Log(string v)