예제 #1
0
        private void EnsureLogStatus()
        {
            string path = GetStatusFilePath();

            if (chkLogEnabled.Checked)
            {
                ProfilerUtils.CreateFile(path);
            }
            else
            {
                ProfilerUtils.DeleteFile(path);
            }
        }
예제 #2
0
        private void ProfilerStopped()
        {
            timer1.Enabled           = false;
            btnStart.Enabled         = true;
            btnStop.Enabled          = false;
            btnDeleteLogFile.Enabled = true;

            try
            {
                string path = GetStatusFilePath();
                ProfilerUtils.DeleteFile(path);
            }
            catch { }
        }