private void button3_Click(object sender, EventArgs e) { using (BulkPayDialog dialog = new BulkPayDialog(Asset)) { if (dialog.ShowDialog() != DialogResult.OK) { return; } listBox1.Items.AddRange(dialog.GetOutputs()); ItemsChanged?.Invoke(this, EventArgs.Empty); } }
private void button3_Click(object sender, EventArgs e) { using (BulkPayDialog dialog = new BulkPayDialog(Asset)) { if (dialog.ShowDialog() != DialogResult.OK) { return; } listBox1.Items.AddRange(dialog.GetOutputs().Select(p => new TxOutListBoxItem { Output = p, AssetName = dialog.AssetName }).ToArray()); ItemsChanged?.Invoke(this, EventArgs.Empty); } }