public virtual void DrawType(XBaseWindow window) { window.DoButton("Type", () => { XCodeTypeTemplate.SelectType(x => type = x); }); memberAttribute = (MemberAttributes)window.CreateEnumSelectable(memberAttribute); }