src/Misc/EFTools/EntityDesign/VisualStudio/ModelWizard/gui/WizardPageStart.cs
// <summary>
//     Invoked by the VS Wizard framework when this page is exited or when the "Finish" button is clicked.
//     Updates ModelBuilderSettings from the GUI
// </summary>
Invoked by the VS Wizard framework when this page is exited or when the "Finish" button is clicked.
Updates ModelBuilderSettings from the GUI
Invoked by the VS Wizard framework when this page is exited or when the " Finish " button is clicked . Updates ModelBuilderSettings from the GUI
public override bool OnDeactivate()
        {
            var modelPath = 
                CreateModelFileInfo(Wizard.ModelBuilderSettings, GetNewModelFileExtension(Wizard.ModelBuilderSettings));
            Wizard.FileAlreadyExistsError = !VerifyModelFilePath(modelPath);
            if (!Wizard.FileAlreadyExistsError)
            {
                UpdateSettingsFromGui(GetSelectedOptionIndex(), modelPath);
                return base.OnDeactivate();
            }
            else
            {
                var deactivateResult = base.OnDeactivate();
                Wizard.Close();
                return deactivateResult;
            }
        }
public override bool OnDeactivate ( ) { var modelPath = CreateModelFileInfo ( Wizard . ModelBuilderSettings , GetNewModelFileExtension ( Wizard . ModelBuilderSettings ) ) ; Wizard . FileAlreadyExistsError = ! VerifyModelFilePath ( modelPath ) ; if ( ! Wizard . FileAlreadyExistsError ) { UpdateSettingsFromGui ( GetSelectedOptionIndex ( ) , modelPath ) ; return base . OnDeactivate ( ) ; } else { var deactivateResult = base . OnDeactivate ( ) ; Wizard . Close ( ) ; return deactivateResult ; } }
Invoked by the VS Wizard framework when this page is exited or when the "Finish" button is clicked.
Invoked by the VS Wizard framework when this page is exited or when the " Finish " button is clicked .
// if we threw the exception here it would be swallowed and then the "Add New Item" dialog // would be closed. Therefore we set the flag so that the exception is thrown from the  // ModelObjectItemWizard which will make the "Add New Item" dialog re-appear which allows // the user to enter a different name.