private void SetStringFilter(string value, TraceProperties.StringFilterCondition condition, int column) { if (!String.IsNullOrEmpty(value)) { m_Rdr.SetFilter(column, LogicalOperators.AND , condition == TraceProperties.StringFilterCondition.Like ? ComparisonOperators.Like : ComparisonOperators.NotLike , value ); } }
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(); }
private void SetIntFilter(int? value, TraceProperties.IntFilterCondition condition, int column) { int[] com = new[] { ComparisonOperators.Equal, ComparisonOperators.NotEqual, ComparisonOperators.GreaterThan, ComparisonOperators.LessThan }; if ((null != value)) { long? v = value; m_Rdr.SetFilter(column, LogicalOperators.AND, com[(int)condition], v); } }
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; }