|
@@ -63,7 +63,15 @@ namespace fis.Win.Dev.Managers
|
|
|
|
|
|
private void UpdateProgress(List<string> args)
|
|
|
{
|
|
|
- BrowserManager.MainBrowser.ExecuteJS(TargetMethodName.UpdateExportProgess, args);
|
|
|
+ if (AppManager.IsVStation)
|
|
|
+ {
|
|
|
+ BrowserManager.SlaveBrowser.ExecuteJS(TargetMethodName.UpdateExportProgess, args);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ BrowserManager.MainBrowser.ExecuteJS(TargetMethodName.UpdateExportProgess, args);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
public async void ExportDatas(List<ExportDataInfo> exportDataInfos, string name, string path)
|
|
@@ -109,7 +117,16 @@ namespace fis.Win.Dev.Managers
|
|
|
var dialog = new OpenFolderDialog();
|
|
|
dialog.Directory = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
|
|
|
Window window;
|
|
|
- window = AppManager.MainWindow;
|
|
|
+
|
|
|
+ if (AppManager.IsVStation)
|
|
|
+ {
|
|
|
+ var manager = AppManager.Get<ISecondaryWindowManager>();
|
|
|
+ window = manager.SlaveWindow;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ window = AppManager.MainWindow;
|
|
|
+ }
|
|
|
var result = await dialog.ShowAsync(window);
|
|
|
if (result != null)
|
|
|
{
|