public SetupGA(string GA, string user, string Error) { InitializeComponent(); qrDeposit.Size = panel1.Size; qrDeposit.Location = new Point(0, 0); panel1.Controls.Add(qrDeposit); if (qrDeposit.IsLocked) { qrDeposit.UnLock(); } qrDeposit.Text = "otpauth://totp/justdice:" + user + "?secret=" + GA; qrDeposit.QuietZoneModule = Gma.QrCodeNet.Encoding.Windows.Render.QuietZoneModules.Four; BitMatrix qrMatrix = qrDeposit.GetQrMatrix(); if (qrDeposit.IsFreezed) { qrDeposit.UnFreeze(); } qrDeposit.Freeze(); lblCode.Text = GA; if (Error != "") { lblError.Text = Error; } }
void JD_OnAddress(Address Address) { if (qrDeposit.IsLocked) { qrDeposit.UnLock(); } qrDeposit.Text = "clam:" + Address.DepositAddress; qrDeposit.QuietZoneModule = Gma.QrCodeNet.Encoding.Windows.Render.QuietZoneModules.Four; BitMatrix qrMatrix = qrDeposit.GetQrMatrix(); if (qrDeposit.IsFreezed) { qrDeposit.UnFreeze(); } qrDeposit.Freeze(); UpdateTextBox(txtDeposit, Address.DepositAddress); }