internal void RunProfiling(bool showfilters) { if (showfilters) { TraceProperties.TraceSettings ts = m_currentsettings.GetCopy(); using (TraceProperties frm = new TraceProperties()) { frm.SetSettings(ts); if (DialogResult.OK != frm.ShowDialog()) return; m_currentsettings = frm.m_currentsettings.GetCopy(); } } StartProfiling(); }
internal void RunProfiling(bool showfilters) { if (showfilters) { TraceProperties.TraceSettings ts = m_currentsettings.GetCopy(); using (TraceProperties frm = new TraceProperties()) { frm.SetSettings(ts); if (DialogResult.OK != frm.ShowDialog()) return; m_currentsettings = frm.m_currentsettings.GetCopy(); } } // StartProfiling(); cbbHost.Enabled = false; edDatabaseName.Enabled = false; edHostName.Enabled = false; btnSaveConfig.Enabled = false; //进程只能在运行时使用 cbbSPID.Enabled = true; btnCurrentSPID.Enabled = true; }