Esempio n. 1
0
 private void UpdateHeader(FlagEnumComboBox cmb)
 {
     if (cmb.m_ComboBox.Items.Count > 0)
     {
         cmb.m_ComboBox.SelectedIndex = 0;
     }
 }
Esempio n. 2
0
            internal FlagEnumComboBoxItem(FlagEnumComboBox parent, Enum value, Enum[] affectedFlags)
            {
                m_Parent = parent;
                m_Parent.ValueChanged += OnValueChanged;
                m_Value         = value;
                m_AffectedFlags = affectedFlags;

                if (m_AffectedFlags.Length > 1)
                {
                    Type = EnumItemType_e.Combined;
                }
                else if (m_AffectedFlags.Length == 0)
                {
                    Type = EnumItemType_e.None;
                }
                else
                {
                    Type = EnumItemType_e.Default;
                }

                Title       = EnumControlHelper.GetTitle(m_Value);
                Description = EnumControlHelper.GetDescription(m_Value);
            }