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); } }
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); } } }
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"); } }