Audit.Util.DomainLogDisplayItem.AssignStyle C# (CSharp) Method

AssignStyle() private method

private AssignStyle ( ImmutableEnvelope item, string session ) : void
item ImmutableEnvelope
session string
return void
        void AssignStyle(ImmutableEnvelope item, string session)
        {
            Style += cell =>
                {
                    if (session == (cell.Value as string))
                    {
                        cell.Style.BackColor = DomainAwareAnalysis.GetBackgroundColorForCategory(session);
                    }
                    else if (cell.Value is char)
                    {
                        cell.Style.BackColor = DomainAwareAnalysis.GetBackgroundColorForCategory(Class);
                    }
                    else
                    {
                        cell.Style.BackColor = DomainAwareAnalysis.GetBackgroundColorForContract(item.Items[0]);
                    }
                };
        }