public OperationProgressViewModel() { Callbacks = new ExportCallbacks(() => _shouldAbort, OperationCompleted, TotalToProcessChanged, CurrentlyProcessedChanged); AbortCommand = new Command(p => _shouldAbort = true, p => (_shouldAbort == false)); }
public void Export(string source, string dest, CallbacksBase exportCallbacks) { if (exportCallbacks == null) exportCallbacks = new ExportCallbacks(); _fileSystem.Export(FindNode(source), dest, exportCallbacks); }