Added untracked files
This commit is contained in:
20
Filtration/Converters/HashSignRemovalConverter.cs
Normal file
20
Filtration/Converters/HashSignRemovalConverter.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
24
Filtration/Views/ToolPanes/BlockGroupBrowserView.xaml.cs
Normal file
24
Filtration/Views/ToolPanes/BlockGroupBrowserView.xaml.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user