示例#1
0
 private void 投票VToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (VotingDialog dialog = new VotingDialog())
     {
         if (dialog.ShowDialog() != DialogResult.OK)
         {
             return;
         }
         Helper.SignAndShowInformation(dialog.GetTransaction());
     }
 }
示例#2
0
        private void voteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Contract contract = (Contract)listView1.SelectedItems[0].Tag;

            using (VotingDialog dialog = new VotingDialog(contract.ScriptHash))
            {
                if (dialog.ShowDialog() != DialogResult.OK)
                {
                    return;
                }
                Helper.SignAndShowInformation(dialog.GetTransaction());
            }
        }