Exemple #1
0
        private void AddTabItemViewModel()
        {
            var vm = new DirectoryTabItemViewModel();

            DirectoryTabItems.Add(vm);
            CurrentDirectoryTabItem = vm;
        }
Exemple #2
0
        private void CloseTab(DirectoryTabItemViewModel directoryTabItemViewModel)
        {
            DirectoryTabItems.Remove(directoryTabItemViewModel);

            CurrentDirectoryTabItem = DirectoryTabItems.FirstOrDefault();
        }