public FilterViewModel(PluginViewModel pluginViewModel, Filter filter) { _pluginViewModel = pluginViewModel; Filter = filter; _pluginViewModel.MappingViewModel.ProfileViewModel.Profile.Context.ActiveProfileChangedEvent += ContextOnActiveProfileChangedEvent; SubscribeFilters(); }
public void RemovePlugin(PluginViewModel pluginViewModel) { if (!Mapping.RemovePlugin(pluginViewModel.Plugin)) { return; } Plugins.Remove(pluginViewModel); if (Plugins.Count == 0) { DeviceBindings.Clear(); } }