private Widget FindWidgetWithId(Widget widget, string id) { if (widget.WidgetId == id) { return widget; } foreach (Widget w in widget.Widgets) { FindWidgetWithId(w, id); } return null; }
public WidgetCellViewModel(Widget widget) { Widget = widget; _widgetName = widget.Label; }