Example #1
0
        public void AddItem(int key, string title)
        {
            var itemSelector = new ItemSelectorVm(title, key);

            _itemSubscr[itemSelector] = itemSelector.OnSelectionChanged.Subscribe(HandleSelectionChanged);
            _itemSelectors.Add(itemSelector);
        }
Example #2
0
 void HandleSelectionChanged(ItemSelectorVm itemSelector)
 {
     _selectionChanged.OnNext(itemSelector);
 }
Example #3
0
 public void RemoveItem(ItemSelectorVm itemSelectorVm)
 {
     _itemSubscr[itemSelectorVm].Dispose();
     _itemSubscr.Remove(itemSelectorVm);
 }