Пример #1
0
 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
     }
 }
Пример #2
0
        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
            }
        }
Пример #3
0
        public void RemoveDestinationFromSource(string source, string destination)
        {
            FileController controller = controllersDict[source];

            controller.RemoveDestinationFile(destination);
        }