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