internal void SolutionClosed() { mBusinessFlowsPage = null; SetTabsVisibility(false); BusinessFlowsFrame.Content = null; RunFrame.Content = null; ResourcesFrame.Content = null; ConfigurationsFrame.Content = null; //Must do refresh so frames contents will go away and become null this.Refresh(); }
private void MainTabControl_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e) { if (MainTabControl.SelectedItem == BusinessFlowsTab) { if (BusinessFlowsFrame.Content == null) { RepositoryFolder <BusinessFlow> RF = WorkSpace.Instance.SolutionRepository.GetRepositoryItemRootFolder <BusinessFlow>(); mBusinessFlowsPage = new BusinessFlowsPage(RF); BusinessFlowsFrame.SetContent(mBusinessFlowsPage); } } if (MainTabControl.SelectedItem == RunTab) { //Temp - try list sync using SR cache if (RunFrame.Content == null) { RunFrame.SetContent(new ListsPage()); } } //TODO: keep all open pages and cache !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! load o if (MainTabControl.SelectedItem == ResourcesTab) { if (ResourcesFrame.Content == null) { //ResourcesFrame.SetContent(new ResourcesPage()); } } if (MainTabControl.SelectedItem == ConfigurationsTab) { if (ConfigurationsFrame.Content == null) { // ConfigurationsFrame.SetContent(new ConfigurationsPage()); } } }