private void WriteFile(string path, FRATableFormat tableFormat) { using (StreamWriter wr = new StreamWriter(path)) { wr.AutoFlush = true; wr.WriteLine(FRAResult.ToStringTitles(tableFormat)); foreach (FRAResult result in m_FRAResults) { wr.WriteLine(result.ToStringValues(tableFormat)); } } }
public string GetDataTable(FRATableFormat tableFormat) { using (StringWriter wr = new StringWriter()) { wr.WriteLine(FRAResult.ToStringTitles(tableFormat)); foreach (FRAResult result in m_FRAResults) { wr.WriteLine(result.ToStringValues(tableFormat)); } return(wr.ToString()); } }