public static void CMD_MergeMap() { if (EditorSubsystem.getInstance().IsTesting()) { Logger.Log("Cannot merge in testing mode."); return; } System.Windows.Application.Current.Dispatcher.BeginInvoke(new Action(() => { OpenFileDialog dlg = new OpenFileDialog(); dlg.DefaultExt = ".mocha"; dlg.Filter = "Mocha Map Files (.mocha)|*.mocha"; DialogResult result = dlg.ShowDialog(); if (result == DialogResult.OK) { // EngineManagerViewModel.instance.BusyMessage = "... Merging " + System.IO.Path.GetFileName(dlg.FileName) + " ..."; string filename = dlg.FileName; MergeMapWindow mmw = new MergeMapWindow(filename); mmw.ShowDialog(); } })); }
public static void CMD_MergeMap() { if (EditorSubsystem.getInstance().IsTesting()) { Logger.Log("Cannot merge in testing mode."); return; } System.Windows.Application.Current.Dispatcher.BeginInvoke(new Action(() => { OpenFileDialog dlg = new OpenFileDialog(); dlg.DefaultExt = ".mocha"; dlg.Filter = "Mocha Map Files (.mocha)|*.mocha"; DialogResult result = dlg.ShowDialog(); if (result == DialogResult.OK) { // EngineManagerViewModel.instance.BusyMessage = "... Merging " + System.IO.Path.GetFileName(dlg.FileName) + " ..."; string filename = dlg.FileName; MergeMapWindow mmw = new MergeMapWindow(filename); mmw.ShowDialog(); } })); }