示例#1
0
 private void  举EToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (ElectionDialog dialog = new ElectionDialog())
     {
         if (dialog.ShowDialog() != DialogResult.OK)
         {
             return;
         }
         Helper.SignAndShowInformation(dialog.GetTransaction());
     }
 }
示例#2
0
        private void  举EToolStripMenuItem_Click(object sender, EventArgs e)
        {
            InvocationTransaction tx;

            using (ElectionDialog dialog = new ElectionDialog())
            {
                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);
        }