private void DetailNodeControl_DrawText(object sender, DrawEventArgs e) { if (e.TextColor != SystemColors.ControlText) { return; } TreeItemBase tib = ((TreeItemBase)e.Node.Tag); ChangeType change = tib.GetItemAt(_assemblyIndex).Change; if (ChangeTypeUtil.HasBreaking(change)) { e.TextColor = Color.Red; } else if (change == ChangeType.Added) { e.TextColor = Color.Green; } else if (tib.GetItemAt(0).GetStrongestFilterStatus() < FilterStatus.DontCare) { e.TextColor = Color.LightGray; } }
void DetailItemNodeControl_DrawText(object sender, DrawEventArgs e) { if (e.TextColor != SystemColors.ControlText) { return; } TreeItemBase tib = ((TreeItemBase)e.Node.Tag); if (tib.GetItemAt(0).GetStrongestFilterStatus() < FilterStatus.DontCare) { e.TextColor = Color.LightGray; } }