Exemplo n.º 1
0
 internal IdxViewModel(string name, Idx.Entry entry, IIdxManager idxManager) :
     base(name, GetChildren(name, idxManager))
 {
     _idxManager   = idxManager;
     ExportCommand = new RelayCommand(_ =>
                                      FileDialog.OnFolder(x =>
                                                          Task.Run(() =>
                                                                   ExtractProcessor.ShowProgress(progress =>
                                                                                                 Extract(x, progress)))));
 }
Exemplo n.º 2
0
 internal FolderViewModel(
     string name, int depth, IEnumerable <EntryParserModel> entries, IIdxManager idxManager) :
     base(name, EntryParserModel.GetEntries(entries.ToList(), depth, idxManager))
 {
     _idxManager   = idxManager;
     ExportCommand = new RelayCommand(_ =>
                                      FileDialog.OnFolder(x =>
                                                          Task.Run(() =>
                                                                   ExtractProcessor.ShowProgress(progress =>
                                                                                                 Extract(x, progress)))));
 }
Exemplo n.º 3
0
 public RootViewModel(string name, List <Idx.Entry> entries, IIdxManager idxManager) :
     base(name, EntryParserModel.GetChildren(entries, idxManager))
 {
     _idxManager   = idxManager;
     ExportCommand = new RelayCommand(_ =>
                                      FileDialog.OnFolder(x =>
                                                          Task.Run(() =>
                                                                   ExtractProcessor.ShowProgress(progress =>
                                                                                                 Extract(x, progress)))));
     ExportAndMergeCommand = new RelayCommand(_ =>
                                              FileDialog.OnFolder(x =>
                                                                  Task.Run(() =>
                                                                           ExtractProcessor.ShowProgress(progress =>
                                                                                                         ExtractAndMerge(x, progress)))));
 }