Automated dotnet-format update
This commit is contained in:
1 parent
ad4c2f68aa
commit
2af18c2d38
403 files changed
+1569
-1567
No files matched your search
@@ -37,7 +37,7 @@ namespace HandyControl.Controls
|
||||
private static void OnValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) =>
|
||||
((Rate) d).OnValueChanged(new FunctionEventArgs<double>(ValueChangedEvent, d)
|
||||
{
|
||||
Info = (double)e.NewValue
|
||||
Info = (double) e.NewValue
|
||||
});
|
||||
|
||||
protected virtual void OnValueChanged(FunctionEventArgs<double> e)
|
||||
@@ -154,7 +154,7 @@ namespace HandyControl.Controls
|
||||
|
||||
public bool IsReadOnly
|
||||
{
|
||||
get => (bool)GetValue(IsReadOnlyProperty);
|
||||
get => (bool) GetValue(IsReadOnlyProperty);
|
||||
set => SetValue(IsReadOnlyProperty, ValueBoxes.BooleanBox(value));
|
||||
}
|
||||
|
||||
@@ -260,4 +260,4 @@ namespace HandyControl.Controls
|
||||
|
||||
public void Reset() => Value = DefaultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -81,7 +81,7 @@ namespace HandyControl.Controls
|
||||
|
||||
public bool IsReadOnly
|
||||
{
|
||||
get => (bool)GetValue(IsReadOnlyProperty);
|
||||
get => (bool) GetValue(IsReadOnlyProperty);
|
||||
set => SetValue(IsReadOnlyProperty, ValueBoxes.BooleanBox(value));
|
||||
}
|
||||
|
||||
@@ -163,7 +163,7 @@ namespace HandyControl.Controls
|
||||
if (IsReadOnly) return;
|
||||
_isSentValue = false;
|
||||
IsSelected = true;
|
||||
RaiseEvent(new RoutedEventArgs(SelectedChangedEvent) {Source = this});
|
||||
RaiseEvent(new RoutedEventArgs(SelectedChangedEvent) { Source = this });
|
||||
}
|
||||
|
||||
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
|
||||
@@ -192,7 +192,7 @@ namespace HandyControl.Controls
|
||||
{
|
||||
if (!_isSentValue)
|
||||
{
|
||||
RaiseEvent(new RoutedEventArgs(ValueChangedEvent) {Source = this});
|
||||
RaiseEvent(new RoutedEventArgs(ValueChangedEvent) { Source = this });
|
||||
_isMouseLeftButtonDown = false;
|
||||
_isSentValue = true;
|
||||
return;
|
||||
@@ -213,9 +213,9 @@ namespace HandyControl.Controls
|
||||
}
|
||||
}
|
||||
|
||||
RaiseEvent(new RoutedEventArgs(ValueChangedEvent) {Source = this});
|
||||
RaiseEvent(new RoutedEventArgs(ValueChangedEvent) { Source = this });
|
||||
_isMouseLeftButtonDown = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user