public void WriteFile(bool action) { if (action == true) { writer.XlsWrite(); writer = null; } else { writer.TxtWrite(); writer = null; } }
public void SetFileNameExp(string FileName, List<string> data) { writer = new Writer(main, FileName, data); }