コード例 #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();
 }