public void Save(PageGraphicRecog page) { StreamWriter sw; mPage = page; String folder = FEITStandard.BASE_FOLDER + PageGraphicRecog.TEST_FOLDER; if (!Directory.Exists(folder)) { if (MessageBox.Show("输出路径错误") == DialogResult.OK) { System.Environment.Exit(0); } } String outpath = FEITStandard.BASE_FOLDER + PageGraphicRecog.TEST_FOLDER + "Record.csv"; if (!File.Exists(outpath)) { sw = File.CreateText(outpath); writeHeader(ref sw); } else { sw = new StreamWriter(outpath, true, Encoding.GetEncoding("gb2312")); } writeRecord(ref sw); sw.Close(); }
public LayoutGFR(PageGraphicRecog page) { mPage = page; }