Esempio n. 1
0
        public FilterViewModel(PluginViewModel pluginViewModel, Filter filter)
        {
            _pluginViewModel = pluginViewModel;
            Filter           = filter;
            _pluginViewModel.MappingViewModel.ProfileViewModel.Profile.Context.ActiveProfileChangedEvent += ContextOnActiveProfileChangedEvent;

            SubscribeFilters();
        }
Esempio n. 2
0
        public void RemovePlugin(PluginViewModel pluginViewModel)
        {
            if (!Mapping.RemovePlugin(pluginViewModel.Plugin))
            {
                return;
            }

            Plugins.Remove(pluginViewModel);
            if (Plugins.Count == 0)
            {
                DeviceBindings.Clear();
            }
        }