Exemplo n.º 1
0
        public override void AddNameProperty(ObjectPropertyList list)
        {
            CoverInfo info = null;

            for (var index = 0; index < CoverInfo.Infos.Count; index++)
            {
                var x = CoverInfo.Infos[index];

                if (x.Type == _CoverType)
                {
                    info = x;
                    break;
                }
            }

            if (info != null)
            {
                if (info.Args != null)
                {
                    list.Add(1157605, info.Args.ToString()); // Bulk Order Cover (~1_HUE~)
                }
                else if (info.Label.Number > 0)
                {
                    list.Add(info.Label.Number);
                }
                else
                {
                    list.Add(1114057, info.Label.ToString()); // ~1_val~
                }
            }
            else
            {
                list.Add(1071097); // Bulk Order Cover (Normal)
            }
        }
Exemplo n.º 2
0
        public void InvalidateHue()
        {
            CoverInfo info = CoverInfo.Infos.FirstOrDefault(x => x.Type == _CoverType);

            if (info != null)
            {
                Hue = info.Hue;
            }
        }
Exemplo n.º 3
0
        public void InvalidateHue()
        {
            CoverInfo info = null;

            for (var index = 0; index < CoverInfo.Infos.Count; index++)
            {
                var x = CoverInfo.Infos[index];

                if (x.Type == _CoverType)
                {
                    info = x;
                    break;
                }
            }

            if (info != null)
            {
                Hue = info.Hue;
            }
        }
Exemplo n.º 4
0
        public override void AddNameProperty(ObjectPropertyList list)
        {
            CoverInfo info = CoverInfo.Infos.FirstOrDefault(x => x.Type == _CoverType);

            if (info != null)
            {
                if (info.Args != null)
                {
                    list.Add(1157605, info.Args.ToString()); // Bulk Order Cover (~1_HUE~)
                }
                else if (info.Label.Number > 0)
                {
                    list.Add(info.Label.Number);
                }
                else
                {
                    list.Add(1114057, info.Label.ToString()); // ~1_val~
                }
            }
            else
            {
                list.Add(1071097); // Bulk Order Cover (Normal)
            }
        }