Ejemplo n.º 1
0
        private void StopSynchronizeFolder(ResourceInfo resourceInfo)
        {
            if (resourceInfo == null)
            {
                return;
            }

            var syncInfo = SyncDbUtils.GetFolderSyncInfoByPath(resourceInfo.Path);

            if (syncInfo != null)
            {
                // If there exists an entry for this path - stop sync command has been triggered.
                SyncDbUtils.DeleteFolderSyncInfo(syncInfo);
                StartDirectoryListing(); // This is just to update the menu flyout - maybe there is a better way
            }
        }