public void ExcludeSid(LogLine line) { var str = line.Sid; AndFilters.Add(Filter.S1(l => l.Sid != str)); DoFilter(); }
public void ExcludeSif() { var enterStringViewModel = new EnterStringViewModel(); if (IoC.Get <IWindowManager>().ShowDialog(enterStringViewModel) != true) { return; } int result; if (int.TryParse(enterStringViewModel.Value, out result)) { var str = result.ToString(); AndFilters.Add(Filter.S1(l => l.Sid != str)); DoFilter(); } else { MessageBox.Show("Int is expected!", "Invalid input", MessageBoxButton.OK, MessageBoxImage.Error); } }