UIElement[] CreateUIElements(ISimpleAppOption option) { if (option is ISimpleAppOptionCheckBox) { return(CreateUIElements((ISimpleAppOptionCheckBox)option)); } if (option is ISimpleAppOptionButton) { return(CreateUIElements((ISimpleAppOptionButton)option)); } if (option is ISimpleAppOptionTextBox) { return(CreateUIElements((ISimpleAppOptionTextBox)option)); } if (option is ISimpleAppOptionUserContent) { return(CreateUIElements((ISimpleAppOptionUserContent)option)); } return(null); }
UIElement[] CreateUIElements(ISimpleAppOption option) { if (option is ISimpleAppOptionCheckBox) return CreateUIElements((ISimpleAppOptionCheckBox)option); if (option is ISimpleAppOptionButton) return CreateUIElements((ISimpleAppOptionButton)option); if (option is ISimpleAppOptionTextBox) return CreateUIElements((ISimpleAppOptionTextBox)option); if (option is ISimpleAppOptionUserContent) return CreateUIElements((ISimpleAppOptionUserContent)option); return null; }