示例#1
0
        private void buttonStart_Click(object sender, EventArgs e)
        {
            if (FileInUsed(textBox1.Text) == true && textBox1.Text != string.Empty)
            {
                csvFileWriter.FilePath = textBox1.Text;
            }
            else
            {
                MessageBox.Show("文件路径不存在 或 已被其他程序使用");
                return;
            }

            csvFileWriter.Start();
            hasStarted = true;
            StateChange(hasStarted);

            LogStartTime = DateTime.Now;
        }