public object AddNew() { CustomerItemUi newItem = new CustomerItemUi(); mItems.Add(newItem); return(newItem); }
public void ChangeSelection(object selectedItem) { CustomerItemUi itemUi = selectedItem as CustomerItemUi; if (itemUi != null) { int selectedIndex = mCustomers.IndexOf(itemUi); if (selectedIndex >= 0) { mViewDataManipulator.ToAbsolutePosition(selectedIndex); } } }