Ejemplo n.º 1
0
        /// <summary>
        /// create SyncInfo
        /// </summary>
        /// <param name="link">link data (will be copied not referenced)</param>
        public SyncInfo(SyncLink link)
        {
            Link = link;
            Time = new TimeMeasurement(this);
            Files = new FilesInfo(this);
            Dirs = new DirsInfo(this);

            Paused = false;
            SyncDirExecutionInfos = new List<SyncDirExecutionInfo>();
            SyncFileExecutionInfos = new List<SyncFileExecutionInfo>();
            ConflictInfos = new List<ElementConflictInfo>();
            LogStack = new Stack<LogMessage>();

            MyDirInfo rootDir = new MyDirInfo("\\", "");
            SyncDirInfo sdi = new SyncDirInfo(this, rootDir, false);
            DirTree = new DirTree(rootDir, null, null);

            Status = SyncStatus.DetectingChanges;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// create SyncInfo
        /// </summary>
        /// <param name="link">link data (will be copied not referenced)</param>
        public SyncInfo(SyncLink link)
        {
            Link  = link;
            Time  = new TimeMeasurement(this);
            Files = new FilesInfo(this);
            Dirs  = new DirsInfo(this);

            Paused = false;
            SyncDirExecutionInfos  = new List <SyncDirExecutionInfo>();
            SyncFileExecutionInfos = new List <SyncFileExecutionInfo>();
            ConflictInfos          = new List <ElementConflictInfo>();
            LogStack = new Stack <LogMessage>();

            MyDirInfo   rootDir = new MyDirInfo("\\", "");
            SyncDirInfo sdi     = new SyncDirInfo(this, rootDir, false);

            DirTree = new DirTree(rootDir, null, null);

            Status = SyncStatus.DetectingChanges;
        }
Ejemplo n.º 3
0
 public DirConflictInfo(SyncDirInfo syncDirInfo, ConflictType type, int conflictPath, string context, string message, Exception exception)
     : base(syncDirInfo, type, conflictPath, context, message, exception)
 {
 }
Ejemplo n.º 4
0
 public SyncDirExecutionInfo(SyncDirInfo syncDirInfo, SyncDirection dir, bool remove)
     : base(syncDirInfo, dir, remove)
 {
 }
Ejemplo n.º 5
0
 public DirConflictInfo(SyncDirInfo syncDirInfo, ConflictType type, int conflictPath, string context, string message, Exception exception)
     : base(syncDirInfo, type, conflictPath, context, message, exception)
 {
 }
Ejemplo n.º 6
0
 public SyncDirExecutionInfo(SyncDirInfo syncDirInfo, SyncDirection dir, bool remove) : base(syncDirInfo, dir, remove)
 {
 }