private void buttonFinish_Click(object sender, EventArgs e) { EventHandler<WizardEventArgs> handler = WizardHostActionEvent; if (handler != null) { WizardEventArgs w = new WizardEventArgs("finish", CurrentPage, -1); handler(this, w); } }
private void buttonPrevious_Click(object sender, EventArgs e) { WizardEventArgs w = new WizardEventArgs("previous", CurrentPage, CurrentPage - 1); EventHandler<WizardEventArgs> handler = WizardHostActionEvent; if (handler != null) { handler(this, w); } if (w.Cancel == false) { CurrentPage--; } }
private void wizardHost_WizardHostActionEvent(object sender, WizardEventArgs e) { if (e.Action == "cancel") { ExportEngineCancel(); } if (e.Action == "finish") { ExportEngineRun(); } }