public void Parse(string FileName) { this.FileName = FileName; lock (this) FML.Parse(FileName, this); }
public override void Load() { Doc = new FMLDocument(); Doc.TagSet.AddTags("root", "window", "button", "label"); FSW = new FileSystemWatcher("content/gui", "main_menu.fml"); FSW.Changed += (S, E) => { FML.Parse("content/gui/main_menu.fml", Doc); }; FSW.EnableRaisingEvents = true; FML.Parse("content/gui/main_menu.fml", Doc); }
/**************************************************************************/ public Collection<FamilyTree> InitFamilyTree() { FamilyTreeReader reader = new FamilyTreeReader(); FT = reader.Execute(); count = FT.Count; SethasChild(); FT2 = new Collection<FamilyTree>(); FT2.Add(FT[0]); fm = new FML(); fm.DoFML(); return FT2; }