private void panelSwatchMin_MouseMove( object sender, MouseEventArgs e )
{
Swatch S = null;
if ( sender == panelSwatchMin )
S = m_SwatchMin;
else if ( sender == panelSwatchMax )
S = m_SwatchMax;
else if ( sender == panelSwatchAverage )
S = m_SwatchAvg;
else
{
foreach ( Swatch CS in m_CustomSwatches )
if ( sender == CS.m_Panel )
{
S = CS;
break;
}
}
labelCapturedSwatchRGB.Text = S != null ? S.m_RGB.ToString( "G4" ) : "";
labelCapturedSwatchxyY.Text = S != null ? S.m_xyY.ToString( "G4" ) : "";
labelCapturedSwatchRGB.ForeColor = S.m_xyY.z > 1.0f ? Color.Red : Color.Black;
labelCapturedSwatchxyY.ForeColor = S.m_xyY.z > 1.0f ? Color.Red : Color.Black;
}