Ejemplo n.º 1
0
        private void RefreshStatus()
        {
            AssetDatabase.SaveAssets();
            refreshInProgress = true;
            bool remoteProjectReflection = VCSettings.ProjectReflectionMode == VCSettings.EReflectionLevel.Remote;

            VCCommands.Instance.DeactivateRefreshLoop();
            VCCommands.Instance.ClearDatabase();
            var statusLevel = remoteProjectReflection ? StatusLevel.Remote : StatusLevel.Local;
            var detailLevel = remoteProjectReflection ? DetailLevel.Verbose : DetailLevel.Normal;

            System.Threading.Tasks.Task <bool> taskStatus = VCCommands.Instance.StatusTask(statusLevel, detailLevel);
            taskStatus.ContinueWithOnNextUpdate(t =>
            {
                VCCommands.Instance.ActivateRefreshLoop();
                refreshInProgress = false;
            });


            //taskStatus.Wait();
            vcMultiColumnAssetList.RefreshSorting();
            RefreshInfo();

            RefreshGUI();
        }