Exemple #1
0
 private async void 注册资产RToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (AssetRegisterDialog dialog = new AssetRegisterDialog())
     {
         if (dialog.ShowDialog() != DialogResult.OK) return;
         Transaction tx = null;
         try
         {
             tx = dialog.GetTransaction();
         }
         catch
         {
             MessageBox.Show("数据填写不完整,或格式错误。");
             return;
         }
         if (tx == null)
         {
             MessageBox.Show("余额不足以支付系统费用。");
             return;
         }
         SignatureContext context = new SignatureContext(tx);
         Program.CurrentWallet.Sign(context);
         await ShowInformationAsync(context);
     }
 }