#include "stdafx.h" ref class ElementStub : Element { public: ElementStub(String^ name, ...array^ runtimeIds) : Element() { _name = name; _runtimeIds = runtimeIds; _patterns = gcnew array(0); } virtual property String^ Name { String^ get() override { return _name; } void set(String^ name) { _name = name; } } virtual property String^ ClassName { String^ get() override { return _className; } void set(String^ className) { _className = className; } } virtual property String^ Id { String^ get() override { return _id; } void set(String^ value) { _id = value; } } virtual property bool IsEnabled { bool get() override { return _isEnabled; } void set(bool value) { _isEnabled = value; } } virtual property bool IsVisible { bool get() override { return _isVisible; } void set(bool value) { _isVisible = value; } } virtual property bool HasKeyboardFocus { bool get() override { return _hasKeyboardFocus; } void set(bool value) { _hasKeyboardFocus = value; } } virtual property array^ RuntimeId { array^ get() override { return _runtimeIds; } } virtual property array^ BoundingRectangle { array^ get() override { return gcnew array {0, 0, 0, 0}; } } virtual property int NativeWindowHandle { int get() override { return _nativeWindowHandle; } void set(int value) { _nativeWindowHandle = value; } } virtual property int ControlTypeId { int get() override { return _controlTypeId; } void set(int value) { _controlTypeId = value; } } virtual property array^ SupportedPatternIds { array^ get() override { return _patterns; } } void SetPatterns(... array^ patterns) { _patterns = patterns; } private: String^ _name; String^ _className; String^ _id; array^ _runtimeIds; array^ _patterns; int _nativeWindowHandle; int _controlTypeId; bool _isEnabled; bool _isVisible; bool _hasKeyboardFocus; };