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]);
}
};
}