Coin.FormMain.SendMoney C# (CSharp) Method

SendMoney() public method

public SendMoney ( string netName, string address, decimal amount, string label, string comment ) : void
netName string
address string
amount decimal
label string
comment string
return void
        public void SendMoney(string netName, string address, decimal amount, string label, string comment)
        {
            var dlg = new FormSendMoney();
            dlg.CtlSend.Wallet = FindWallet(netName).Wallet;
            try {
                dlg.CtlSend.Wallet.AddRecipient(address, label);
            } catch (Exception) {
            }
            if (comment == "")
                comment = label;
            dlg.CtlSend.textAddress.Text = address;
            dlg.CtlSend.textAmount.Text = amount.ToString();
            dlg.CtlSend.textComment.Text = comment;
            Dialog.ShowDialog(dlg, this);
        }