///////////////////// Debug Methods private async void GeneralDebugDumpJsonButton_Click(object sender, EventArgs e) { if (fileinfo == null) { //fileinfo = (await LeagueManager.LoadAndParseReplayHeaders(replaypath)).Result; fileinfo = ReplayReader.ReadReplayFile(replaypath); } if (!string.IsNullOrEmpty(replaypath)) { var outputfile = Path.Combine(Path.GetDirectoryName(replaypath), Path.GetFileNameWithoutExtension(replaypath) + ".json"); var success = await DetailWindowManager.WriteReplayHeaderToFile(outputfile, fileinfo); if (success) { MessageBox.Show("Dumped JSON!", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show("Failed to dump JSON", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } } }