private void 投票VToolStripMenuItem_Click(object sender, EventArgs e) { using (VotingDialog dialog = new VotingDialog()) { if (dialog.ShowDialog() != DialogResult.OK) { return; } Helper.SignAndShowInformation(dialog.GetTransaction()); } }
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()); } }