Exemplo n.º 1
0
 private void OnContextChanged()
 {
     vm = DataContext as GenericSearchSettingsModel;
     if (vm != null)
     {
         shortcuts = new ShortcutManager(Entry, vm);
     }
 }
Exemplo n.º 2
0
        private void OnContextChanged()
        {
            if (vm != null)
            {
                vm.PropertyChanged -= PropertyChanged;
            }

            vm = DataContext as ChannelViewModelBase;
            if (vm == null)
            {
                return;
            }

            shortcuts           = new ShortcutManager(Entry, vm);
            vm.PropertyChanged += PropertyChanged;
        }
Exemplo n.º 3
0
 private void OnContextChanged()
 {
     vm = DataContext as GenericSearchSettingsModel;
     if (vm != null)
         shortcuts = new ShortcutManager(Entry, vm);
 }
        private void OnContextChanged()
        {
            if (vm != null)
                vm.PropertyChanged -= PropertyChanged;

            vm = DataContext as ChannelViewModelBase;
            if (vm == null) return;

            shortcuts = new ShortcutManager(Entry, vm);
            vm.PropertyChanged += PropertyChanged;
        }