Пример #1
0
 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;
 }
Пример #2
0
 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;
 }
Пример #3
0
        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();

        }
Пример #4
0
 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)
         {
         }
     }
 }
Пример #5
0
        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)
                {

                }

            }
        }