Exemplo n.º 1
0
        public string ToDisplayData()
        {
            MoodlightPreset CurrentPreset = new MoodlightPreset("#000000", false, 255);

            if (mPresets.ContainsKey(mCurrentPreset))
            {
                CurrentPreset = mPresets[mCurrentPreset];
            }

            return((mEnabled ? "2" : "1") + "," + mCurrentPreset + "," + (CurrentPreset.BackgroundOnly ? "2" : "1") +
                   "," + CurrentPreset.ColorCode + "," + CurrentPreset.ColorIntensity);
        }
Exemplo n.º 2
0
        public string ToItemFlagData()
        {
            string FlagData = (mEnabled ? "1" : "0") + "|" + mCurrentPreset + "|";

            for (int i = 1; i <= 3; i++)
            {
                MoodlightPreset Preset = mPresets[i];

                if (i > 1)
                {
                    FlagData += ";";
                }

                FlagData += i + "," + Preset.ColorCode + "," + Preset.ColorIntensity + "," + (Preset.BackgroundOnly ? "1" : "0");
            }

            return(FlagData);
        }
Exemplo n.º 3
0
        public string ToDisplayData()
        {
            MoodlightPreset CurrentPreset = new MoodlightPreset("#000000", false, 255);

            if (mPresets.ContainsKey(mCurrentPreset))
            {
                CurrentPreset = mPresets[mCurrentPreset];
            }

            return (mEnabled ? "2" : "1") + "," + mCurrentPreset + "," + (CurrentPreset.BackgroundOnly ? "2" : "1") +
                "," + CurrentPreset.ColorCode + "," + CurrentPreset.ColorIntensity;
        }