void RepopulateListBox()
        {
            dirty = false;

            var filterOptions = new FilterOptions(GetFilterMessageDirection(), GetFilterUserText());
            context.SetFilterOptions(filterOptions);

            messagesListView.Items.Clear();

            var messages = context.GetMessages();
            foreach (var message in messages)
            {
                var item = MakeListViewItem(message);
                messagesListView.Items.Add(item);
            }
        }
 public void SetFilterOptions(FilterOptions options)
 {
     currentFilterOptions = options;
 }