Ejemplo n.º 1
0
 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;
     }
 }
Ejemplo n.º 2
0
 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;
     }
 }
Ejemplo n.º 3
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(new TxOutListBoxItem
         {
             Output    = dialog.GetOutput(),
             AssetName = dialog.AssetName
         });
         ItemsChanged?.Invoke(this, EventArgs.Empty);
     }
 }
Ejemplo n.º 4
0
 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);
         }
     }
 }