CmisSync.ControllerBase.Initialize C# (CSharp) Method

Initialize() public method

Initialize the controller.
public Initialize ( System.Boolean firstRun ) : void
firstRun System.Boolean Whether it is the first time that CmisSync is being run.
return void
        public virtual void Initialize(Boolean firstRun)
        {
            this.firstRun = firstRun;

            FoldersPath = ConfigManager.CurrentConfig.FoldersPath;

            // Create the CmisSync folder and add it to the bookmarks
            bool syncFolderCreated = CreateCmisSyncFolder();

            if (syncFolderCreated)
            {
                AddToBookmarks();
            }

            if (firstRun)
            {
                ConfigManager.CurrentConfig.Notifications = true;
            }

            folderLock = new FolderLock(FoldersPath);
        }