private void Worker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            loadingImage.Visibility    = Visibility.Hidden;
            tabs.Visibility            = Visibility.Visible;
            modelListBox.Visibility    = Visibility.Visible;
            filterTextBox.Visibility   = Visibility.Visible;
            filterTextLabel.Visibility = Visibility.Visible;
            exportButton.Visibility    = Visibility.Visible;
            wmoCheckBox.Visibility     = Visibility.Visible;
            m2CheckBox.Visibility      = Visibility.Visible;

            progressBar.Value    = 100;
            loadingLabel.Content = "Done";

            MenuListfile.IsEnabled = true;

            modelListBox.DataContext   = models;
            textureListBox.DataContext = textures;

            Logger.WriteLine("Worker: Startup complete!");
            previewControl.LoadModel("world/arttest/boxtest/xyz.m2");
#if DEBUG
            //var file = "world/maps/troll raid/troll raid_23_33.adt";
            /// Exporters.glTF.ADTExporter.exportADT(file);
            //previewControl.BakeTexture(file.Replace("/", "\\"), Path.Combine(outdir, Path.GetDirectoryName(file), Path.GetFileNameWithoutExtension(file) + ".png"), true);
#endif
        }
 /* Generic UI */
 private void PreviewButton_Click(object sender, RoutedEventArgs e)
 {
     previewControl.LoadModel((string)modelListBox.SelectedItem);
 }