Esempio n. 1
0
        void UpdateStatusFromGroup(BaseGroupItem group)
        {
            if (group.MaxShading > MaxShading)
            {
                MaxShading = group.MaxShading;
            }
            if (group.MinShading < MinShading)
            {
                MinShading = group.MinShading;
            }

            if (group.MaxRealBrightness > MaxRealBrightness)
            {
                MaxRealBrightness = group.MaxRealBrightness;
            }
            if (group.MinRealBrightness < MinRealBrightness)
            {
                MinRealBrightness = group.MinRealBrightness;
            }

            if (group.MaxUserBrightness > MaxUserBrightness)
            {
                MaxUserBrightness = group.MaxUserBrightness;
            }
            if (group.MinUserBrightness < MinUserBrightness)
            {
                MinUserBrightness = group.MinUserBrightness;
            }

            if (ModeID != group.ModeID)
            {
                ModeID = -1;
            }
        }
Esempio n. 2
0
        void InitStatusFromGroup(BaseGroupItem group)
        {
            ModeID = group.ModeID;

            MaxShading = group.MaxShading;
            MinShading = group.MinShading;

            MaxRealBrightness = group.MaxRealBrightness;
            MinRealBrightness = group.MinRealBrightness;

            MaxUserBrightness = group.MaxUserBrightness;
            MinUserBrightness = group.MinUserBrightness;
        }