AnfiniL.SqlExpressProfiler.MainForm.EnableToolStripButtons C# (CSharp) Method

EnableToolStripButtons() private method

private EnableToolStripButtons ( ) : void
return void
        private void EnableToolStripButtons()
        {
            startToolStripButton.Enabled = CurrentTrace != null && CurrentTrace.Profiler.Status != TraceStatus.Started && CurrentTrace.Profiler.Status != TraceStatus.Closed;
            pauseToolStripButton.Enabled = CurrentTrace != null && CurrentTrace.Profiler.Status != TraceStatus.Stopped && CurrentTrace.Profiler.Status != TraceStatus.Closed;
            stopToolStripButton.Enabled = CurrentTrace != null && CurrentTrace.Profiler.Status != TraceStatus.Stopped && CurrentTrace.Profiler.Status != TraceStatus.Closed;
        }