コード例 #1
0
        private void btn_refresh_Click(object sender, EventArgs e)
        {
            using (YesNoDlg dialog = new YesNoDlg("Are you sure?", "Your wallet db will be initialized."))
            {
                if (dialog.ShowDialog() != DialogResult.OK)
                {
                    return;
                }
            }

            Constant.CurrentWallet.Rebuild();

            WalletOpenedEvent?.Invoke(sender, e);

            SetWalletStatus(WalletStatus.Opened);
        }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: cryptian2019/QURAS_CORE
        private void Event_DeleteAddress(object sender, EventArgs e)
        {
            using (YesNoDlg dialog = new YesNoDlg("Are you sure?", "You are deleting the contact"))
            {
                if (dialog.ShowDialog() != DialogResult.OK)
                {
                    return;
                }
            }

            string[] param = new string[2];
            param = (string[])sender;

            addrbookManager.DeleteAddress(param[1]);

            addrBookPan1.RemoveContact(param[0], param[1]);
        }