void HandleSelect(object Sender, ValuedEventArgs <SelectionOption <FileInfo> > E) { MatchRecord record = null; using (FileStream stream = new FileStream(E.Value.Value.FullName, FileMode.Open)) { using (GZipStream compressionStream = new GZipStream(stream, CompressionMode.Decompress)) { record = new MatchRecord(new SerializationInputStream(compressionStream)); } } _ScenarioView.SetScenario( record.Match.Scenario, new UnitConfigurationRenderer( record.Match.Scenario, GameData.UnitRenderDetails, 128, 1024, ClassLibrary.Instance.GetFont("compacta")), new FactionRenderer( record.Match.Scenario, GameData.FactionRenderDetails, 512, 1024)); _SelectedRecord = record; }
public MatchRecordReplayPlayerController(MatchAdapter Match, MatchRecord MatchRecord) { _Match = Match; _Orders = new Queue <Order>(MatchRecord.Orders); }