Beispiel #1
0
 /// <summary>
 /// 开始导出
 /// </summary>
 /// <param name="setting"></param>
 /// <param name="progressCallback"></param>
 /// <param name="cancellationToken"></param>
 private void StartExport(ExportSetting setting, Action <int> progressCallback, CancellationToken cancellationToken)
 {
     using (var log = new RuntimeLog())
     {
         var exporter = new ExporterX(App.GetHomePath());
         exporter.Export(setting, log, progressCallback, cancellationToken);
     }
 }
Beispiel #2
0
 /// <summary>
 /// 开始导出
 /// </summary>
 /// <param name="localConfig"></param>
 /// <param name="features"></param>
 /// <param name="progressCallback"></param>
 /// <param name="cancellationToken"></param>
 private void StartExport(AppConfigGltf localConfig, Dictionary <FeatureType, bool> features, Action <int> progressCallback, CancellationToken cancellationToken)
 {
     using (var log = new RuntimeLog())
     {
         var featureList = features?.Where(x => x.Value).Select(x => x.Key).ToList() ?? new List <FeatureType>();
         var exporter    = new ExporterX(App.GetHomePath());
         exporter.Export(localConfig.LastTargetPath, featureList, log, progressCallback, cancellationToken);
     }
 }