예제 #1
0
 void ReadMapping()
 {
     foreach (XmlElement e in grammarRoot.SelectNodes("fields-config/field[@name]"))
     {
         Field f = new Field(e.GetAttribute("name"));
         if (e.GetAttribute("code-type") == "function")
         {
             f.CodeType = FieldCodeType.Function;
         }
         f.Code = e.InnerText;
         fieldsListBoxItems.Add(f);
         dialog.AddFieldsListBoxItem(f.ToString());
     }
 }