예제 #1
0
        private void button3_Click(object sender, RoutedEventArgs e)
        {
            if (SDK == null)
            {
                SDK = new MakeMapSDK();
            }

            if (!string.IsNullOrEmpty(textBoxFolder.Text))
            {
                try
                {
                    SDK.LoadBinary(textBoxFolder.Text);
                    MessageBox.Show("All Contents were loaded", "Load Finished", MessageBoxButton.OK, MessageBoxImage.Information);
                    DataContext = SDK;
                }
                catch (Exception aException)
                {
                    if (aException.InnerException != null)
                    {
                        MessageBox.Show(aException.InnerException.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
                    }
                    else
                    {
                        MessageBox.Show(aException.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
                    }
                }
            }
            else
            {
                MessageBox.Show("Please insert a folder", "Folder empty", MessageBoxButton.OK, MessageBoxImage.Information);
            }
        }
예제 #2
0
        public MapMakerControl()
        {
            InitializeComponent();
            _sdk = FiddlerPlugin.PluginPresentationMapMaker.SDK;

            InitDatagrids();
        }
예제 #3
0
 private static void InnerInit()
 {
     MapMaperSdk = new MakeMapSDK();
     Container.RegisterModule <UltimaSDKCoreModule>();
     Container.RegisterModule <OpenUO.Ultima.PresentationFramework.UltimaSDKImageSourceModule>();
     ArtworkFactory = new ArtworkFactory(InstallLocation, Container);
     TexmapFactory  = new TexmapFactory(InstallLocation, Container);
     innerInit      = true;
 }
예제 #4
0
 private void ButtonRead_Click(object sender, RoutedEventArgs e)
 {
     if (string.IsNullOrEmpty(textBoxFolder.Text))
     {
         return;
     }
     try
     {
         SDK = new MakeMapSDK(textBoxFolder.Text);
         SDK.Populate();
         DataContext = SDK;
     }
     catch (Exception)
     {
     }
 }
예제 #5
0
 public override void Dispose()
 {
     SDK = null;
 }
예제 #6
0
 public override void Initialize()
 {
     SDK = new MakeMapSDK();
 }