Esempio n. 1
0
 public void SetActiveDocumentView(IDocumentView view)
 {
     UIDispatcher.Execute(() =>
     {
         if (DocumentViews.Contains(view))
         {
             ActiveDocumentView = view;
         }
     });
 }
Esempio n. 2
0
        private void TabVm_Closed(object sender, EventArgs e)
        {
            var vm = sender as DocumentViewModel;

            if (vm != null && DocumentViews.Contains(vm.View as IDocumentView))
            {
                _viewModels.Remove(vm.UniqueId);
                DocumentViews.Remove(vm.View as IDocumentView);
                OnCountChanged();
            }
        }