private void wizard1_AfterSwitchPages(object sender, Wizard.Wizard.AfterSwitchPagesEventArgs e) { lblError.Text = string.Empty; if (wizard1.WizardPages[e.NewIndex] == pageLast) { } }
private void wizard1_AfterSwitchPages(object sender, Wizard.Wizard.AfterSwitchPagesEventArgs e) { lblError.Text = string.Empty; if (wizard1.WizardPages[e.NewIndex] == pageLast) { if (_modelElement is StoredProcedure) { var targetItem = _modelElement as nHydrate.Dsl.StoredProcedure; var importItem = _importDomain.GetStoredProcedure(DatabaseConnectionControl1.ImportOptions.GetConnectionString(), (string)cboItem.SelectedItem, _auditFields); if (importItem.ColumnFailure) { lblError.Text = "The output fields for this stored procedure could not be determined. Its fields collection will not be modified."; } } } }
private void wizard1_AfterSwitchPages(object sender, Wizard.Wizard.AfterSwitchPagesEventArgs e) { if (_moduleList.Count == 0) { wizard1.FinishEnabled = true; } else { var checkedCount = 0; foreach (TreeNode n in tvwProjects.Nodes) { if (n.Checked) { checkedCount++; } } wizard1.FinishEnabled = (checkedCount > 0) && (chkModule.CheckedItems.Count > 0); } }
private void wizard1_AfterSwitchPages(object sender, Wizard.Wizard.AfterSwitchPagesEventArgs e) { wizard1.FinishEnabled = (e.NewIndex == wizard1.WizardPages.Count - 1); }
private void wizard1_AfterSwitchPages(object sender, Wizard.Wizard.AfterSwitchPagesEventArgs e) { wizard1.FinishEnabled = true; }