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(dialog.GetOutput()); ItemsChanged?.Invoke(this, EventArgs.Empty); } }
private void button6_Click(object sender, EventArgs e) { using (PayToDialog dialog = new PayToDialog()) { if (dialog.ShowDialog() != DialogResult.OK) { return; } TxOutListBoxItem output = dialog.GetOutput(); TransactionWrapper tx = (TransactionWrapper)propertyGrid1.SelectedObject; tx.Outputs.Add(new TransactionOutputWrapper { AssetId = (UInt256)output.AssetId, Value = new Fixed8((long)output.Value.Value), ScriptHash = output.ScriptHash }); } }