public void OpenDirectory(string directory) { WorkingDirectory = directory.Replace('\\', '/'); AllFiles.ReplaceAll(Directory.GetFiles(WorkingDirectory).Select(x => new FileModel(x.Replace('\\', '/')))); new Sort() { Mode = SortMode.Natural }.ApplyTo(AllFiles); Filter(); }