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

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