コード例 #1
0
 private void buttonSDMVerbose_Click(object sender, EventArgs e)
 {
     EA.Diagram currentDiagram = repository.GetCurrentDiagram();
     if (currentDiagram.Notes == "Moflon::Verbose=true")
     {
         SDMUtil.setAllVerboseTags(false, repository, currentDiagram);
     }
     else if (currentDiagram.Notes == "Moflon::Verbose=false")
     {
         SDMUtil.setAllVerboseTags(true, repository, currentDiagram);
     }
     else
     {
         SDMUtil.setAllVerboseTags(true, repository, currentDiagram);
     }
 }
コード例 #2
0
 private void toggleDiagramVerboseStatus(EA.Diagram currentDiagram)
 {
     if (currentDiagram != null)
     {
         if (currentDiagram.Notes.Contains("Moflon::Verbose=true"))
         {
             SDMUtil.setAllVerboseTags(false, repository, currentDiagram);
         }
         else if (currentDiagram.Notes.Contains("Moflon::Verbose=false"))
         {
             SDMUtil.setAllVerboseTags(true, repository, currentDiagram);
         }
         else
         {
             SDMUtil.setAllVerboseTags(true, repository, currentDiagram);
         }
     }
 }
コード例 #3
0
 private void buttonSDMVerbose_Click(object sender, EventArgs e)
 {
     checkFunctions();
     if (activateSDMVerboseButton)
     {
         EA.Diagram currentDiagram = repository.GetCurrentDiagram();
         if (currentDiagram.Notes.Contains("Moflon::Verbose=true"))
         {
             SDMUtil.setAllVerboseTags(false, repository, currentDiagram);
         }
         else if (currentDiagram.Notes.Contains("Moflon::Verbose=false"))
         {
             SDMUtil.setAllVerboseTags(true, repository, currentDiagram);
         }
         else
         {
             SDMUtil.setAllVerboseTags(true, repository, currentDiagram);
         }
     }
     else
     {
         MessageBox.Show("To use this function open a SDM Diagram");
     }
 }