mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Code cleanup
This commit is contained in:
1 parent
0d02e144ba
commit
da4b691717
70 files changed
+492
-488
No files matched your search
@@ -7,12 +7,6 @@ namespace Artemis.UI.Converters
|
||||
{
|
||||
public class NullToVisibilityConverter : IValueConverter
|
||||
{
|
||||
private enum Parameters
|
||||
{
|
||||
Normal,
|
||||
Inverted
|
||||
}
|
||||
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
var direction = (Parameters) Enum.Parse(typeof(Parameters), (string) parameter ?? throw new InvalidOperationException());
|
||||
@@ -22,6 +16,7 @@ namespace Artemis.UI.Converters
|
||||
return Visibility.Hidden;
|
||||
return Visibility.Visible;
|
||||
}
|
||||
|
||||
if (value == null)
|
||||
return Visibility.Visible;
|
||||
return Visibility.Hidden;
|
||||
@@ -31,5 +26,11 @@ namespace Artemis.UI.Converters
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
private enum Parameters
|
||||
{
|
||||
Normal,
|
||||
Inverted
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user