src/Misc/EFTools/EntityDesign/VisualStudio/ModelWizard/gui/WizardPageStart.cs
// <summary>
//     Helper to update listbox selection from ModelBuilderSettings
// </summary>
Helper to update listbox selection from ModelBuilderSettings
Helper to update listbox selection from ModelBuilderSettings
private void UpdateGuiFromSettings()
        {
            switch (Wizard.ModelBuilderSettings.GenerationOption)
            {
                case ModelGenerationOption.EmptyModel:
                    listViewModelContents.SelectedIndices.Add(GenerateEmptyModelIndex);
                    break;
                case ModelGenerationOption.GenerateFromDatabase:
                    listViewModelContents.SelectedIndices.Add(GenerateFromDatabaseIndex);
                    break;
                case ModelGenerationOption.EmptyModelCodeFirst:
                    listViewModelContents.SelectedIndices.Add(GenerateEmptyModelCodeFirstIndex);
                    break;
                case ModelGenerationOption.CodeFirstFromDatabase:
                    listViewModelContents.SelectedIndices.Add(GenerateCodeFirstFromDatabaseIndex);
                    break;
            }
        }
private void UpdateGuiFromSettings ( ) { switch ( Wizard . ModelBuilderSettings . GenerationOption ) { case ModelGenerationOption . EmptyModel : listViewModelContents . SelectedIndices . Add ( GenerateEmptyModelIndex ) ; break ; case ModelGenerationOption . GenerateFromDatabase : listViewModelContents . SelectedIndices . Add ( GenerateFromDatabaseIndex ) ; break ; case ModelGenerationOption . EmptyModelCodeFirst : listViewModelContents . SelectedIndices . Add ( GenerateEmptyModelCodeFirstIndex ) ; break ; case ModelGenerationOption . CodeFirstFromDatabase : listViewModelContents . SelectedIndices . Add ( GenerateCodeFirstFromDatabaseIndex ) ; break ; } }
Helper to update listbox selection from ModelBuilderSettings
Helper to update listbox selection from ModelBuilderSettings