public EditingChangedOperation(DominoProviderTabItem model) { OldViewModel = model; }
private void RegisterReplacementViewModel(DominoProviderTabItem oldVM, DominoProviderTabItem newVM) { TabItem tabItem = Tabs.Where(x => x.Content == oldVM).FirstOrDefault(); tabItem.Content = newVM; }
private DominoProviderTabItem GetNewViewModel(DominoProviderTabItem oldVM) { TabItem tabItem = Tabs.Where(x => x.Content == oldVM).FirstOrDefault(); return(TabItem.ViewModelGenerator(((DominoProviderTabItem)tabItem.Content).CurrentProject, tabItem.Path)); }
private void RegisterNewViewModel(DominoProviderTabItem oldViewModel, DominoProviderTabItem newViewModel) { TabItem tabItem = Tabs.Where(x => x.Content == oldViewModel).FirstOrDefault(); tabItem.Content = newViewModel; }