private void EnsureLogStatus() { string path = GetStatusFilePath(); if (chkLogEnabled.Checked) { ProfilerUtils.CreateFile(path); } else { ProfilerUtils.DeleteFile(path); } }
private void ProfilerStopped() { timer1.Enabled = false; btnStart.Enabled = true; btnStop.Enabled = false; btnDeleteLogFile.Enabled = true; try { string path = GetStatusFilePath(); ProfilerUtils.DeleteFile(path); } catch { } }