Esempio n. 1
0
        private ObservableCollection <MappingViewModel> CreateMappingVms(List <FolderMapping> mappings)
        {
            var results = new ObservableCollection <MappingViewModel>();

            if (mappings == null)
            {
                return(results);
            }

            foreach (FolderMapping mapping in mappings)
            {
                var vm = new MappingViewModel();
                vm.Mapping   = mapping;
                vm.ClientAge = DirUtils.GetLatestFileWriteTimeInDir(mapping.ClientSidePath);
                results.Add(vm);
            }

            return(results);
        }
Esempio n. 2
0
        private void EditMapping(MappingViewModel vm)
        {
            var editWindow = new EditMappingWindow(vm);

            editWindow.ShowDialog();
        }