public BlockGroupBrowserViewModel(IBlockGroupMapper blockGroupMapper) : base("Block Group Browser") { _blockGroupMapper = blockGroupMapper; FilterToSelectedBlockGroupCommand = new RelayCommand(OnFilterToSelectedBlockGroupCommand, () => SelectedBlockGroupViewModel != null); ContentId = ToolContentId; var icon = new BitmapImage(); icon.BeginInit(); icon.UriSource = new Uri("pack://application:,,,/Filtration;component/Resources/Icons/block_group_browser_icon.png"); icon.EndInit(); IconSource = icon; Messenger.Default.Register<NotificationMessage<bool>>(this, message => { switch (message.Notification) { case "ShowAdvancedToggled": { OnShowAdvancedToggled(message.Content); break; } } }); }
public BlockGroupBrowserViewModel(IBlockGroupMapper blockGroupMapper) : base("Block Group Browser") { _blockGroupMapper = blockGroupMapper; FilterToSelectedBlockGroupCommand = new RelayCommand(OnFilterToSelectedBlockGroupCommand, () => SelectedBlockGroupViewModel != null); ContentId = ToolContentId; var icon = new BitmapImage(); icon.BeginInit(); icon.UriSource = new Uri("pack://application:,,,/Filtration;component/Resources/Icons/block_group_browser_icon.png"); icon.EndInit(); IconSource = icon; Messenger.Default.Register <NotificationMessage <bool> >(this, message => { switch (message.Notification) { case "ShowAdvancedToggled": { OnShowAdvancedToggled(message.Content); break; } } }); }