Exemplo n.º 1
0
 public Actor()
 {
     NewBaseDir            = string.Empty;
     OldBaseDir            = string.Empty;
     SourceType            = "L";
     SourceConnector       = null;
     SourceDirectoryEngine = new DirectoryEngineL();
     SourceFiler           = new FilerL();
     TargetType            = "L";
     TargetConnector       = null;
     TargetDirectoryEngine = new DirectoryEngineL();
     TargetFiler           = new FilerL();
 }
Exemplo n.º 2
0
 public Actor(string newBaseDir, string oldBaseDir)
 {
     NewBaseDir = newBaseDir;
     OldBaseDir = oldBaseDir;
     if (newBaseDir.StartsWith("#"))
     {
         SourceType            = "A";
         SourceConnector       = new Connector(newBaseDir);
         SourceDirectoryEngine = new DirectoryEngineA(SourceConnector);
         SourceFiler           = new FilerA(SourceConnector);
     }
     else if (newBaseDir.StartsWith("!") || newBaseDir.StartsWith("%"))
     {
         SourceType            = "G";
         SourceConnector       = new Connector(newBaseDir);
         SourceDirectoryEngine = new DirectoryEngineG(SourceConnector);
         SourceFiler           = new FilerG(SourceConnector);
     }
     else
     {
         SourceType            = "L";
         SourceConnector       = new Connector(newBaseDir);
         SourceDirectoryEngine = new DirectoryEngineL();
         SourceFiler           = new FilerL();
     }
     if (oldBaseDir.StartsWith("#"))
     {
         TargetType            = "A";
         TargetConnector       = new Connector(oldBaseDir);
         TargetDirectoryEngine = new DirectoryEngineA(TargetConnector);
         TargetFiler           = new FilerA(TargetConnector);
     }
     else if (oldBaseDir.StartsWith("!") || oldBaseDir.StartsWith("%"))
     {
         TargetType            = "G";
         TargetConnector       = new Connector(oldBaseDir);
         TargetDirectoryEngine = new DirectoryEngineG(TargetConnector);
         TargetFiler           = new FilerG(TargetConnector);
     }
     else
     {
         TargetType            = "L";
         TargetConnector       = new Connector(oldBaseDir);
         TargetDirectoryEngine = new DirectoryEngineL();
         TargetFiler           = new FilerL();
     }
 }