完成从TIA变量表导入变量
This commit is contained in:
@@ -107,4 +107,16 @@ public class DialogService :IDialogService
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public async Task<string> ShowImportExcelDialog()
|
||||
{
|
||||
var vm = new ImportExcelDialogViewModel();
|
||||
var dialog = new ImportExcelDialog(vm);
|
||||
var result = await dialog.ShowAsync();
|
||||
if (result == ContentDialogResult.Primary)
|
||||
{
|
||||
return vm.FilePath;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -15,4 +15,5 @@ public interface IDialogService
|
||||
|
||||
void ShowMessageDialog(string title, string message);
|
||||
Task<VariableData> ShowEditVarDataDialog(VariableData variableData);
|
||||
Task<string> ShowImportExcelDialog();
|
||||
}
|
||||
Reference in New Issue
Block a user