private void Home() { if (string.IsNullOrEmpty(_currentFolder)) { return; } _currentFolder = string.Empty; FileLogs.Clear(); foreach (var log in _fileLogs) { FileLogs.Add(log.TransReflection()); } }
private void OpenFolder(FileLog fileLog) { if (fileLog.Type == FileType.File) { return; } _currentFolder = fileLog.Path; FileLogs.Clear(); foreach (var log in fileLog.Files) { FileLogs.Add(log.TransReflection()); } }
private void Back() { if (string.IsNullOrEmpty(_currentFolder)) { return; } foreach (var fileLog in _fileLogs.Where(fileLog => fileLog.Files != null && fileLog.Files.Count(o => o.Path == _currentFolder) == 1)) { _currentFolder = fileLog.Path; FileLogs.Clear(); foreach (var log in fileLog.Files) { FileLogs.Add(log.TransReflection()); } LogPages = new ObservableCollection <PageModel> { new PageModel { Index = 1, IsSelected = true } }; return; } Home(); }