示例#1
0
        private void winForm_Load(object sender, EventArgs e)
        {
            BuildButton();

            try
            {
                //DirectoryInfoDemo directory = new DirectoryInfoDemo();
                //directory.CreateDirectory();

                //FileInfoDemo fileInfoDemo=new FileInfoDemo();
                //fileInfoDemo.WriteLog();

                WriteLogService writeLogService = new WriteLogService();
                writeLogService.AppendLogFile();
            }
            catch (Exception)
            {
                throw;
            }
        }
示例#2
0
        private void _writeLogTimer_Elapsed(object sender, ElapsedEventArgs e)
        {
            WriteLogService writeLogService = new WriteLogService();

            writeLogService.AppendLogFile();
        }