Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        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]);
        }