public string GetName(string name_set_tag, Template template) { if (NameSets.Exists(x => x.Tag == name_set_tag)) { return(NameSets.Find(x => x.Tag == name_set_tag).GetNameWithTemplate(template)); } else { throw new Exception("No NameSet with tag '" + name_set_tag + "'"); } }
public string GetName(string name_set_tag) { if (NameSets.Exists(x => x.Tag == name_set_tag)) { var temp = NameSets.Find(x => x.Tag == name_set_tag); if (temp.Active) { return(temp.GetName()); } else { throw new Exception("The name set " + name_set_tag + " is not active."); } } else { throw new Exception("No NameSet with tag '" + name_set_tag + "'"); } }
public List <Template> GetNameSetTemplates(string tag) { return(NameSets.Find(x => x.Tag == tag).Templates); }