예제 #1
0
 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 + "'");
     }
 }
예제 #2
0
 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 + "'");
     }
 }
예제 #3
0
 public List <Template> GetNameSetTemplates(string tag)
 {
     return(NameSets.Find(x => x.Tag == tag).Templates);
 }