private void addFile(String filePath) { SystemFile newFile = new SystemFile(filePath, dispatcher); if (newFile.Name != null) { files.Add(newFile); } }
private void addFile(String filePath) { if (Interop.Shell.Exists(filePath) && isFileVisible(filePath)) { SystemFile newFile = new SystemFile(filePath, dispatcher); if (newFile.Name != null) { files.Add(newFile); } } }
private void addFile(string filePath) { if (Shell.Exists(filePath) && isFileVisible(filePath)) { SystemFile newFile = new SystemFile(filePath); if (newFile.Name != null) { files.Add(newFile); OnPropertyChanged("Files"); } } }