public void RemoveMessageFilter(MessageFilterViewModel messageFilterViewModel)
        {
            if (messageFilterViewModel == null)
            {
                return;
            }

            FiltersProfile.MessageFilters.Remove(messageFilterViewModel.MessageFilter);
            MessageFilters.Remove(messageFilterViewModel);

            logPaneServices.EventAggregator.PublishOnCurrentThread(RefreshEvent.Partial);
        }
        public void AddMessageFilter(string messageFilter)
        {
            if (string.IsNullOrWhiteSpace(messageFilter))
            {
                return;
            }
            if (MessageFilters.Any(mf => mf.Filter == messageFilter))
            {
                return;
            }

            var filter = new MessageFilter(messageFilter);

            FiltersProfile.MessageFilters.Add(filter);
            var messageFilterViewModel = new MessageFilterViewModel(logPaneServices, filter);

            MessageFilters.Add(messageFilterViewModel);

            logPaneServices.EventAggregator.PublishOnCurrentThread(RefreshEvent.Partial);
        }