Esempio n. 1
0
        private void _lv_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            var itemView = _lv.SelectedItem as ReadableTuple <int>;

            _tab.ItemsEventsDisabled = true;

            try {
                if (itemView == null)
                {
                    _dp.Reset();
                }
                else
                {
                    _dp.Display((ReadableTuple <TKey>)(object) itemView, null);
                }
            }
            finally {
                _tab.ItemsEventsDisabled = false;
            }
        }