private void ChargerFichierXML(string file) { var t = new Thread(() => { this.Root = FHXXMLConverter.FromXML(file); //FHXParserWrapper.BuildDeltaVHierarchy(this.Root); this.tvMain.Dispatcher.BeginInvoke(new Action(delegate { this.tvMain.Items.Add(this.Root.ToTreeViewItem(true, false)); })); }); t.Start(); }
public static void SearchAffectations() { string[] affectations = File.ReadAllLines(@"D:\FHX\Affectations.txt"); FHXObject Root = FHXXMLConverter.FromXML(@"D:\FHX\Base LLIC3 19-08-14.xml"); var res = FHXAffectationChecker.CheckAffectations(affectations, Root); Console.WriteLine("{0} / {1}", affectations.Length, res.Keys.Count); foreach (var r in res.Keys) { if (res.Keys.Contains(r)) { if (res[r].Count == 0) { Console.WriteLine(r); } } } }