private void btn_Export_Click(object sender, EventArgs e) { //log = new LogFile(null, m_strLogFilePath); //FolderBrowserDialog dg=new FolderBrowserDialog(); //if (dg.ShowDialog() == DialogResult.OK) //{ // log.ExportLog(dg.SelectedPath + "\\log.txt"); // Stream pStream=File.op //} LogTable.ExportLog("日志记录", listView); }
//导出日志 20110810 xisheng private void 导出日志ToolStripMenuItem_Click(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; string err = LogTable.ExportLog(); if (err != "") { MessageBox.Show(err, "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); } this.Cursor = Cursors.Default; }