private void AddWatchFolder() { WatchFoldersSettings.Add(new WatchFolderSettingsViewModel(new Common.ObjectModel.Settings.WatchFolderSettings()) { Name = "<Enter Name>", FolderName = "<Enter Folder Name>" }); }
public bool SetWatchFolderSettings(WatchFolderSettings watchFolderSettings, string folderName) { try { WatchFoldersSettings watchFoldersSettings = GetWatchFoldersSettings(); if (watchFoldersSettings.Contains(folderName)) { watchFoldersSettings[folderName] = watchFolderSettings; } else { watchFoldersSettings.Add(watchFolderSettings); } return(true); } catch { return(false); } }