Ejemplo n.º 1
0
        public FrmScanQRCode(IWhatsAppNETAPI whatsAppApi)
        {
            InitializeComponent();
            this.BackColor = Color.FromArgb(0, 189, 164);

            _whatsAppApi    = whatsAppApi;
            picQRCode.Image = _whatsAppApi.GetQRCode();
        }
Ejemplo n.º 2
0
        private void tmrRefreshQRCode_Tick(object sender, EventArgs e)
        {
            var image = _whatsAppApi.GetQRCode();

            if (image != null)
            {
                picQRCode.Image = image;
            }
            else
            {
                this.Close();
            }
        }