private void button1_Click(object sender, EventArgs e) { using (PayToDialog dialog = new PayToDialog()) { if (dialog.ShowDialog() != DialogResult.OK) return; listBox1.Items.Add(new TxOutListBoxItem { Account = dialog.Account, Amount = dialog.Amount }); button3.Enabled = true; } }
private void button1_Click(object sender, EventArgs e) { using (PayToDialog dialog = new PayToDialog()) { if (dialog.ShowDialog() != DialogResult.OK) { return; } listBox1.Items.Add(new IssueListBoxItem { Account = dialog.Account, Amount = dialog.Amount }); button3.Enabled = true; } }
private void button1_Click(object sender, EventArgs e) { using (PayToDialog dialog = new PayToDialog(asset: Asset, scriptHash: ScriptHash)) { if (dialog.ShowDialog() != DialogResult.OK) { return; } listBox1.Items.Add(new TxOutListBoxItem { Output = dialog.GetOutput(), AssetName = dialog.AssetName }); ItemsChanged?.Invoke(this, EventArgs.Empty); } }
private void button1_Click(object sender, EventArgs e) { using (PayToDialog dialog = new PayToDialog()) { if (dialog.ShowDialog() != DialogResult.OK) { return; } listBox1.Items.Add(new TxOutListBoxItem { Account = dialog.Account, Amount = dialog.Amount }); if (ItemsChanged != null) { ItemsChanged(this, EventArgs.Empty); } } }