private async void btnShowQRCode_Click(object sender, EventArgs e)
        {
            QRCodeDialog dialog = new QRCodeDialog();

            BusyMessage.Show("Please wait...", this.FindForm());
            await dialog.LoadDialogAsync();

            BusyMessage.Close();
            var result = dialog.ShowDialog();
        }
Пример #2
0
        private void Event_QRCodeBtnClicked(object sender, EventArgs e)
        {
            string address = "";

            foreach (UInt160 scriptHash in Constant.CurrentWallet.GetAddresses().ToArray())
            {
                VerificationContract contract = Constant.CurrentWallet.GetContract(scriptHash);

                address = contract.Address;
            }

            using (QRCodeDialog dlg = new QRCodeDialog(address))
            {
                if (dlg.ShowDialog() == DialogResult.OK)
                {
                }
            }
        }
Пример #3
0
        /// <summary>
        /// Rfs the device qr code.
        /// </summary>
        private void RFDeviceQRCode()
        {
            if (this.dgRFDevices.SelectedItem == null)
            {
                MB.Information("No RFDevice Is Selected In The DataGrid!");
                return;
            }

            if (this.dgRFDevices.SelectedItems.Count > 1)
            {
                MB.Information("There Are More Than One RFDevice Selected In The DataGrid!");
                return;
            }

            QRCodeDialog dlg = new QRCodeDialog(this.dgRFDevices.SelectedItem as RFDeviceViewModel);

            dlg.ShowDialog();
            dlg = null;
        }