private void button4_Click(object sender, EventArgs e) { using ( var excel = new ExcelFile(LogFile) ) { excel.AddLogs(logs); } Process.Start(LogFile); }