Exemple #1
0
 private void Home()
 {
     if (string.IsNullOrEmpty(_currentFolder))
     {
         return;
     }
     _currentFolder = string.Empty;
     FileLogs.Clear();
     foreach (var log in _fileLogs)
     {
         FileLogs.Add(log.TransReflection());
     }
 }
Exemple #2
0
 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());
     }
 }
Exemple #3
0
        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();
        }