示例#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;
 }
 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)
         {
         }
     }
 }
        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)
                {

                }

            }
        }