public void ProcessDeleteXmlSourceRequested(XmlSourceEventArgs data) { if (SolutionsFolder != null) { foreach (SolutionViewModel solution in SolutionsFolder.Solutions) { if (solution.Solution.SolutionID == data.Solution.SolutionID) { EditWorkspaceViewModel parentView = solution.FindParentViewModel(data); if (parentView is SpecificationSourcesViewModel) { (parentView as SpecificationSourcesViewModel).ProcessDeleteXmlSourcePerformed(data); } break; } } } }
public void ProcessDeleteObjectInstanceRequested(ObjectInstanceEventArgs data) { if (SolutionsFolder != null) { foreach (SolutionViewModel solution in SolutionsFolder.Solutions) { if (solution.Solution.SolutionID == data.Solution.SolutionID) { EditWorkspaceViewModel parentView = solution.FindParentViewModel(data); if (parentView is ModelObjectDataViewModel) { (parentView as ModelObjectDataViewModel).ProcessDeleteObjectInstancePerformed(data); } break; } } } }
public void ProcessEditXmlSourcePerformed(XmlSourceEventArgs data) { if (SolutionsFolder != null) { foreach (SolutionViewModel solution in SolutionsFolder.Solutions) { if (solution.Solution.SolutionID == data.Solution.SolutionID) { EditWorkspaceViewModel parentView = solution.FindParentViewModel(data); if (parentView is SpecificationSourcesViewModel) { (parentView as SpecificationSourcesViewModel).ProcessEditXmlSourcePerformed(data); solution.SpecTemplatesFolder.LoadSpecDirectories(); } break; } } } }