예제 #1
0
파일: MainVM.cs 프로젝트: rschili/Builder
        public void SaveEnvironmentsIfDirty()
        {
            if (!_environmentIsDirty)
            {
                return;
            }

            _environmentIsDirty = false;

            lock (SourceDirectories)
            {
                //rebuild the model tree
                AppDataManager.SaveEnvironments(SourceDirectories.Select(vm => vm.RegenerateModel()).ToList());
            }
        }