Added untracked files

This commit is contained in:
Ben
2015-07-02 17:57:43 +01:00
parent c3d11da155
commit 0bc3cac585
19 changed files with 770 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
using System;
using System.Globalization;
using System.Windows.Data;
namespace Filtration.Converters
{
internal class HashSignRemovalConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
var inputString = (string) value;
return inputString.Replace("#", string.Empty);
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}

View File

@@ -0,0 +1,24 @@
using System.Windows;
using System.Windows.Controls;
namespace Filtration.Views.ToolPanes
{
public partial class BlockGroupBrowserView
{
public BlockGroupBrowserView()
{
InitializeComponent();
}
private void BlockGroupCheckBox_Clicked(object sender, RoutedEventArgs e)
{
// Prevents the user from putting a ThreeState checkbox into the indeterminate state
// allowing the indeterminate state to only be set by the object itself.
var cb = e.Source as CheckBox;
if (cb != null && !cb.IsChecked.HasValue)
{
cb.IsChecked = false;
}
}
}
}