SparkleLib.SparkleRepoBase.Initialize C# (CSharp) Method

Initialize() public method

public Initialize ( ) : void
return void
        public void Initialize ()
        {
            // Sync up everything that changed since we've been offline
            new Thread (() => {
                if (HasRemoteChanges)
                    SyncDownBase ();

                if (HasUnsyncedChanges || HasLocalChanges) {
                    do {
                        SyncUpBase ();

                    } while (HasLocalChanges);
                }
                
                if (!UseCustomWatcher)
                    this.watcher.ChangeEvent += OnFileActivity;

                this.remote_timer.Start ();
            
            }).Start ();
        }