public MainWindow() { InitializeComponent(); Container = new IoCContainer(); InstallLocation = InstallationLocator.Locate().First(); SDK = new TilesCategorySDKModule(InstallLocation); Container.RegisterModule <UltimaSDKCoreModule>(); Container.RegisterModule <OpenUO.Ultima.PresentationFramework.UltimaSDKImageSourceModule>(); FactoryArt = new ArtworkFactory(InstallLocation, Container); FactoryTex = new TexmapFactory(InstallLocation, Container); DataContext = SDK; }
public MainWindow() { InitializeComponent(); Container = new IoCContainer(); InstallLocation = InstallationLocator.Locate().First(); SDK = new TilesCategorySDKModule(InstallLocation); Container.RegisterModule<UltimaSDKCoreModule>(); Container.RegisterModule<OpenUO.Ultima.PresentationFramework.UltimaSDKImageSourceModule>(); FactoryArt = new ArtworkFactory(InstallLocation, Container); FactoryTex = new TexmapFactory(InstallLocation,Container); DataContext = SDK; }
public static void Init() { Container = new IoCContainer(); if (InstallLocation == null) InstallLocation = InstallationLocator.Locate().FirstOrDefault(); if (InstallLocation != null) { SdkTiles = new TilesCategorySDKModule(InstallLocation); SdkTiles.Populate(); } if (!innerInit) InnerInit(); }
private void buttonLoadFolder_Click(object sender, RoutedEventArgs e) { if (!string.IsNullOrEmpty(textBoxFolder.Text)) { try { InstallLocation = new InstallLocation(textBoxFolder.Text); SDK = new TilesCategorySDKModule(InstallLocation); Container = new IoCContainer(); Container.RegisterModule <UltimaSDKCoreModule>(); Container.RegisterModule <OpenUO.Ultima.PresentationFramework.UltimaSDKImageSourceModule>(); FactoryArt = new ArtworkFactory(InstallLocation, Container); FactoryTex = new TexmapFactory(InstallLocation, Container); } catch (Exception) { } } }
private void buttonLoadFolder_Click(object sender, RoutedEventArgs e) { if (!string.IsNullOrEmpty(textBoxFolder.Text)) { try { InstallLocation = new InstallLocation(textBoxFolder.Text); SDK = new TilesCategorySDKModule(InstallLocation); Container = new IoCContainer(); Container.RegisterModule<UltimaSDKCoreModule>(); Container.RegisterModule<OpenUO.Ultima.PresentationFramework.UltimaSDKImageSourceModule>(); FactoryArt = new ArtworkFactory(InstallLocation, Container); FactoryTex = new TexmapFactory(InstallLocation,Container); } catch (Exception) { } } }