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; } }
private void _writeLogTimer_Elapsed(object sender, ElapsedEventArgs e) { WriteLogService writeLogService = new WriteLogService(); writeLogService.AppendLogFile(); }