private void Filter(object sender, RoutedEventArgs e) { if (lottery.Filtered) { lottery.Rest(); } else { lottery.Filter(); } }