// Token: 0x060019C5 RID: 6597 RVA: 0x0007B1FC File Offset: 0x000793FC
        public static bool Save([NotNull] RunReport runReport, [NotNull] string fileName)
        {
            string text = RunReport.FileNameToPath(fileName);
            bool   result;

            try
            {
                if (!Directory.Exists(RunReport.runReportsFolder))
                {
                    Directory.CreateDirectory(RunReport.runReportsFolder);
                }
                XDocument xdocument = new XDocument();
                xdocument.Add(HGXml.ToXml <RunReport>("RunReport", runReport));
                xdocument.Save(text);
                result = true;
            }
            catch (Exception ex)
            {
                Debug.LogFormat("Could not save RunReport {0}: {1}", new object[]
                {
                    text,
                    ex.Message
                });
                result = false;
            }
            return(result);
        }
        public static RunReport Load([NotNull] string fileName)
        {
            string    text = RunReport.FileNameToPath(fileName);
            RunReport result;

            try
            {
                XElement xelement = XDocument.Load(text).Element("RunReport");
                if (xelement == null)
                {
                    Debug.LogFormat("Could not load RunReport {0}: {1}", new object[]
                    {
                        text,
                        "File is malformed."
                    });
                    result = null;
                }
                else
                {
                    RunReport runReport = new RunReport();
                    RunReport.FromXml(xelement, ref runReport);
                    result = runReport;
                }
            }
            catch (Exception ex)
            {
                Debug.LogFormat("Could not load RunReport {0}: {1}", new object[]
                {
                    text,
                    ex.Message
                });
                result = null;
            }
            return(result);
        }