示例#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);
     }
 }
示例#2
0
 private void 注册资产RToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (AssetRegisterDialog dialog = new AssetRegisterDialog())
     {
         if (dialog.ShowDialog() != DialogResult.OK)
         {
             return;
         }
         Helper.SignAndShowInformation(dialog.GetTransaction());
     }
 }
示例#3
0
        private void 注册资产RToolStripMenuItem_Click(object sender, EventArgs e)
        {
            InvocationTransaction tx;

            using (AssetRegisterDialog dialog = new AssetRegisterDialog())
            {
                if (dialog.ShowDialog() != DialogResult.OK)
                {
                    return;
                }
                tx = dialog.GetTransaction();
            }
            using (InvokeContractDialog dialog = new InvokeContractDialog(tx))
            {
                if (dialog.ShowDialog() != DialogResult.OK)
                {
                    return;
                }
                tx = dialog.GetTransaction();
            }
            Helper.SignAndShowInformation(tx);
        }
示例#4
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);
     }
 }