Beispiel #1
0
 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);
     }
 }
Beispiel #2
0
 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      = output.Value.ToFixed8(),
             ScriptHash = output.ScriptHash
         });
     }
 }