private void btnAdd_Click(object sender, RoutedEventArgs e) { if (Validate.AllowAdd()) { General.AddFilter(); } }