public FrmScanQRCode(IWhatsAppNETAPI whatsAppApi) { InitializeComponent(); this.BackColor = Color.FromArgb(0, 189, 164); _whatsAppApi = whatsAppApi; picQRCode.Image = _whatsAppApi.GetQRCode(); }
private void tmrRefreshQRCode_Tick(object sender, EventArgs e) { var image = _whatsAppApi.GetQRCode(); if (image != null) { picQRCode.Image = image; } else { this.Close(); } }