Exemple #1
0
        private void StartExportCommandHandler()
        {
            try
            {
                if (string.IsNullOrEmpty(ExportPath) || CurrentExporter == null || !ExportNodes.Any())
                {
                    throw new NullReferenceException("Bad Export path // no export nodes // no exporter chosen");
                }

                exportTask = Task.Run(() =>
                {
                    var dataList = new List <DataTuple>();
                    foreach (var node in ExportNodes)
                    {
                        dataList.AddRange(GatherExportList(node));
                    }

                    ExportProcess(dataList);
                });
            }
            catch (Exception ex)
            {
                MessageBoxInstance.Raise(ex.Message);
                PLogger.Log(ex.Message);
            }
        }
Exemple #2
0
 public override void ExportContent(out IExportData data)
 {
     data = new ExportNodes(nodes);
 }