Example #1
0
        private decimal Adj(byte val, bool isIntrinsic)
        {
            if (!isIntrinsic)
            {
                return(val);
            }

            return(masker.GetIntrinsicMask(val));
        }
Example #2
0
        protected void SetAttributeLabels(Label textLabel, Label valueLabel, byte value, bool IsIntrinsic = false, bool IsInverted = false)
        {
            byte maskedValue = 0;

            if (IsIntrinsic)
            {
                maskedValue = value;
                value       = masker.GetIntrinsicMask(value);
            }

            Color color = GetAttributeColor(IsInverted ? (byte)(21 - value) : value);

            //textLabel.ForeColor = color;
            valueLabel.ForeColor = color;
            valueLabel.Text      = value.ToString();
            if (maskedValue > 0)
            {
                valueLabel.Text += $" ({maskedValue})";
            }
        }