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