internal void AddCorrelationFilter(Guid newCorrId)
 {
     if (!newCorrId.Equals(Guid.Empty))
     {
         var corrIds = GetCurrentCorrelationIdFilter(true);
         if (!corrIds.Contains(newCorrId))
         {
             corrIds.Add(newCorrId);
         }
         chkCorrelation.Checked = true;
         textCorrelationId.Text = string.Join(", ", corrIds);
         ptv.LogUse("FilterByCorrelationId");
     }
 }
Exemplo n.º 2
0
        internal void SelectCurrentCorrelation()
        {
            var count  = 0;
            var corrId = GetSelectedCorrelationId();

            if (!corrId.Equals(Guid.Empty))
            {
                foreach (DataGridViewRow row in crmGridView.Rows)
                {
                    var idstr = row.Cells[PluginTraceLog.CorrelationId]?.Value?.ToString();
                    if (Guid.TryParse(idstr, out Guid id) && id.Equals(corrId))
                    {
                        row.Selected = true;
                        count++;
                    }
                    else
                    {
                        row.Selected = false;
                    }
                }
                ptv.LogUse("SelectByCorrelationId");
            }
        }