private void stopToolStripButton_Click(object sender, EventArgs e) { Trace trace = CurrentTrace; bool result = !StopCurrentTrace(); if (!result && trace != null) { _traceManager.DeleteProfiler(trace.Profiler); } EnableToolStripButtons(); }