public EnumTypeEditor SetEnumType(EnumType type, bool memberOnly = false)
 {
     MemberOnly = memberOnly;
     SetTypeBase(type);
     enumType = type;
     LanguageSpecificInitialization();
     InitEditStack();
     enumValueEditor.ValueChanged += new EditValueChangedEventHandler(enumValueEditor_ValueChanged);
     return this;
 }
Example #2
0
		/// <exception cref="ArgumentNullException">
		/// <paramref name="enumType"/> is null.
		/// </exception>
		internal EnumShape(EnumType _enum) : base(_enum)
		{
			this._enum = _enum;
			UpdateMinSize();
		}
 public void SetEnumType(EnumType parent)
 {
     if (parent != null)
     {
         this.parent = parent;
         FillList();
     }
 }