Esempio n. 1
0
        public void AddItem(int key, string title)
        {
            var itemSelector = new ItemSelectorVm(title, key);

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