public LoaderManager(IFileLoader loader, LoaderExtension ext) { Instance = loader; m_Ext = ext; m_Ext.RequestPreLoadFile += OnRequestPreLoadFile; }
void ConfigureExtension(LoaderExtension extension) { var configuratorSetPage = new ConfiguratorSetPage(); foreach (var configurator in extension.Items.OfType <LoaderConfiguratorType>()) { configuratorSetPage.ConfiguratorTypes.Add(new ConfiguratorSetPageItem(configurator, null)); } NavigationService.Navigate(configuratorSetPage); configuratorSetPage.Return += ConfiguratorSetPageReturn; }
public static void InitExtension(LoaderExtension extension) { var queryParams = new object[] { "@Path", extension.Path, "@IsScript", extension is LoaderScriptExtension }; var id = DatabaseUtil.ExecuteNullableScalar <int>( "SELECT Id FROM Extensions WHERE Path = @Path AND IsScript = @IsScript", queryParams); if (id == null) { id = DatabaseUtil.ExecuteInsert( "INSERT INTO Extensions (Path, IsScript) VALUES (@Path, @IsScript)", queryParams); } extension.DatabaseId = id.Value; }
protected LoaderExtensionItem(LoaderExtension extension) { Extension = extension; }