public void Select(int index) { int selectIndex; if (ItemModelCollection.Count() > index) { selectIndex = index; } else { selectIndex = ItemModelCollection.Count() - 1; } SelectingIndex = selectIndex; }
public void Initialize(ItemBuildControl view) { _view = view; _searchWord = ""; _view.SearchWordBox.Text = ""; GetFilteredCollection(); _view.BindData(this); if (ItemModelCollection.Count() >= 1) { SelectingIndex = -1; SelectingIndex = 0; } else { SelectingIndex = -1; } }