コード例 #1
0
 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;
             }
         }
     }
 }
コード例 #2
0
 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;
             }
         }
     }
 }
コード例 #3
0
 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;
             }
         }
     }
 }