/* Changes the destination path */ protected void ChangeDestinationPath(string filePath) { // Stop watching for file changes SwitchFileWatcher(false); FileSyncXMLParser parser = new FileSyncXMLParser(); // For now, just overwrite the destination and save m_watched_path.Destinations.Clear(); m_watched_path.Destinations.Add(filePath); parser.WriteFile(SAVE_FILE_NAME, m_watched_path); SwitchFileWatcher(true); }
/* Changes the path to the folder being watched by the file watcher */ protected void ChangeWatchedPath(String filePath) { // Stop watching for file changes SwitchFileWatcher(false); FileSyncXMLParser parser = new FileSyncXMLParser(); // For now, just overwrite the path and save m_watched_path.Path = m_file_watcher.Path = filePath; parser.WriteFile(SAVE_FILE_NAME, m_watched_path); SwitchFileWatcher(true); }
protected void WriteWatchedPath() { FileSyncXMLParser parser = new FileSyncXMLParser(); parser.WriteFile(SAVE_FILE_NAME, m_watched_path); }