private IProjectUserControl GetProjectUserControl(FistCoreSettingsType projectType) { switch (projectType) { case FistCoreSettingsType.OrmProject: return this.uiDbProject; case FistCoreSettingsType.DotNetProject: return this.uiDotNetProject; default: throw new ArgumentException("Unsupported project type: " + projectType.ToString() + "."); } }
public FistCoreSettings(FistCoreSettingsType settingsType) { this.SettingsType = settingsType; this.HasChanges = false; }