Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
 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--;
     }
 }
Esempio n. 3
0
        private void wizardHost_WizardHostActionEvent(object sender, WizardEventArgs e)
        {
            if (e.Action == "cancel")
            {
                ExportEngineCancel();
            }

            if (e.Action == "finish")
            {
                ExportEngineRun();
            }
        }