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); } }
public MapMakerControl() { InitializeComponent(); _sdk = FiddlerPlugin.PluginPresentationMapMaker.SDK; InitDatagrids(); }
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; }
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) { } }
public override void Dispose() { SDK = null; }
public override void Initialize() { SDK = new MakeMapSDK(); }