public void AddController(string source) { try { FileController controller = new FileController(source); controllers.Add(controller); controllersDict.Add(source, controller); } catch (FileNotFoundException exc) { //TODO: here must be notification message } }
public void AddDestinationToSource(string source, string destination) { FileController controller = controllersDict[source]; if (controller != null) { try { controller.AddDestionationFile(destination); } catch (FileNotFoundException exc) { //TODO: notification message that destination file does not exist } } else { //TODO: notify that such sourche does not exist } }
public void RemoveDestinationFromSource(string source, string destination) { FileController controller = controllersDict[source]; controller.RemoveDestinationFile(destination); }