Пример #1
0
        private async void LoadRepository()
        {
            string patchToRepository = repoLoader.GetImport().GetPathTorepostory();

            if (patchToRepository.Length != 0)
            {
                PathVariable = patchToRepository;
                HierarchicalAreas.Add(await ViewModelSaverLoader.LoadRootItemFromRepositoryAsync(patchToRepository));
                ChangeControlVisibility = Visibility.Visible;
                RaisePropertyChanged("ChangeControlVisibility");
                RaisePropertyChanged("PathVariable");
            }
        }
Пример #2
0
        public async Task SaveFileAsync(string dllPath)
        {
            SaveFileDialog saveFileDialog1 = new SaveFileDialog
            {
                Filter = "XML Files|*.xml",
                Title  = "Save an XML File"
            };

            saveFileDialog1.ShowDialog();

            if (saveFileDialog1.FileName != "")
            {
                await ViewModelSaverLoader.SaveDLLToRepositoryAsync(saveFileDialog1.FileName, dllPath);
            }
            else
            {
                MessageBox.Show("No files selected");
            }
        }
Пример #3
0
        private async void TreeViewLoaded()
        {
            TreeViewItem rootItem = await ViewModelSaverLoader.LoadRootItemFromDLLAsync(PathVariable);

            HierarchicalAreas.Add(rootItem);
        }