public override bool Equals(object obj) { if (obj is ColorTableEntry) { ColorTableEntry other = (ColorTableEntry)obj; return(color.SequenceEqual(other.color)); } return(false); }
void UpdateOSD(string text, int numero) { if (_osdColorTable.Length > 0) { ColorTableEntry entry = numero >= _osdColorTable.Length ? _osdColorTable[_osdColorTable.Length - 1] : _osdColorTable[numero]; _frmOsd.UpdateDisplay(text, entry.formBg, entry.textBg, entry.textFg); } else { _frmOsd.UpdateDisplay(text, Color.White, SystemColors.Control, Color.Black); } }