static void ParseDemo() { var ana = currentAna; ana.Participants.Clear(); ana.Progress = 0; ana.Rounds = new System.Collections.Generic.List <RoundEventMap>(); ana.IsFinished = false; Heatmap h = new Heatmap( Database, File.OpenRead(Path.Combine("demo/", ana.DemoFile)), ana.Overview, ana ); h.ParseHeaderOnly(); var result = h.ParseTheRest(); currentAna = result; }