示例#1
0
 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
             );
     }
 }
示例#2
0
 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();
 }
示例#3
0
 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;
        }