コード例 #1
0
        public MainWindow()
        {
            if (bool.Parse(ConfigurationManager.AppSettings["firstrun"]) == true)
            {
                var cfgWindow = new ConfigurationWindow();
                cfgWindow.ShowDialog();

                ConfigurationManager.RefreshSection("appSettings");
            }

            InitializeComponent();

            worker.DoWork               += worker_DoWork;
            worker.RunWorkerCompleted   += worker_RunWorkerCompleted;
            worker.ProgressChanged      += worker_ProgressChanged;
            worker.WorkerReportsProgress = true;

            exportworker.DoWork               += exportworker_DoWork;
            exportworker.RunWorkerCompleted   += exportworker_RunWorkerCompleted;
            exportworker.ProgressChanged      += worker_ProgressChanged;
            exportworker.WorkerReportsProgress = true;

            cascworker.DoWork               += cascworker_DoWork;
            cascworker.RunWorkerCompleted   += cascworker_RunWorkerCompleted;
            cascworker.ProgressChanged      += worker_ProgressChanged;
            cascworker.WorkerReportsProgress = true;
        }
コード例 #2
0
        public MainWindow()
        {
            if (bool.Parse(ConfigurationManager.AppSettings["firstrun"]) == true)
            {
                var cfgWindow = new ConfigurationWindow();
                cfgWindow.ShowDialog();

                ConfigurationManager.RefreshSection("appSettings");
            }

            InitializeComponent();

            worker.DoWork += worker_DoWork;
            worker.RunWorkerCompleted += worker_RunWorkerCompleted;
            worker.ProgressChanged += worker_ProgressChanged;
            worker.WorkerReportsProgress = true;

            exportworker.DoWork += exportworker_DoWork;
            exportworker.RunWorkerCompleted += exportworker_RunWorkerCompleted;
            exportworker.ProgressChanged += worker_ProgressChanged;
            exportworker.WorkerReportsProgress = true;

            cascworker.DoWork += cascworker_DoWork;
            cascworker.RunWorkerCompleted += cascworker_RunWorkerCompleted;
            cascworker.ProgressChanged += worker_ProgressChanged;
            cascworker.WorkerReportsProgress = true;
        }
コード例 #3
0
        private void MenuPreferences_Click(object sender, RoutedEventArgs e)
        {
            var cfgWindow = new ConfigurationWindow(true);

            cfgWindow.ShowDialog();

            ConfigurationManager.RefreshSection("appSettings");
        }
コード例 #4
0
        private void MenuPreferences_Click(object sender, RoutedEventArgs e)
        {
            var cfgWindow = new ConfigurationWindow(true);

            cfgWindow.ShowDialog();

            ConfigurationManager.RefreshSection("appSettings");

            if (ConfigurationManager.AppSettings["exportFormat"] == "glTF")
            {
                exportButton.Content = "Export model to glTF!";
            }
            else
            {
                exportButton.Content = "Export model to OBJ!";
            }
        }
コード例 #5
0
        public MainWindow()
        {
            if (bool.Parse(ConfigurationManager.AppSettings["firstrun"]) == true)
            {
                var cfgWindow = new ConfigurationWindow();
                cfgWindow.ShowDialog();

                ConfigurationManager.RefreshSection("appSettings");
            }

            if (bool.Parse(ConfigurationManager.AppSettings["firstrun"]) == true)
            {
                Close();
            }

            InitializeComponent();

            tileBox = tileListBox;

            Title = "Marlamin's WoW Exporter " + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();

            previewControl = new PreviewControl(renderCanvas);
            CompositionTarget.Rendering += previewControl.CompositionTarget_Rendering;
            wfHost.Initialized          += previewControl.WindowsFormsHost_Initialized;

            exportworker.DoWork               += Exportworker_DoWork;
            exportworker.RunWorkerCompleted   += Exportworker_RunWorkerCompleted;
            exportworker.ProgressChanged      += Worker_ProgressChanged;
            exportworker.WorkerReportsProgress = true;

            cascworker.DoWork               += CASCworker_DoWork;
            cascworker.RunWorkerCompleted   += CASCworker_RunWorkerCompleted;
            cascworker.ProgressChanged      += Worker_ProgressChanged;
            cascworker.WorkerReportsProgress = true;

            fileworker.DoWork               += Fileworker_DoWork;
            fileworker.RunWorkerCompleted   += Fileworker_RunWorkerCompleted;
            fileworker.ProgressChanged      += Fileworker_ProgressChanged;
            fileworker.WorkerReportsProgress = true;
        }