This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace TabletTester2025
|
||||
{
|
||||
@@ -8,5 +10,31 @@ namespace TabletTester2025
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void OnHardnessUpPress(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
if (sender is Button btn && btn.DataContext is ViewModels.StationViewModel vm)
|
||||
vm.StartHardnessUp();
|
||||
}
|
||||
|
||||
private void OnHardnessUpRelease(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
if (sender is Button btn && btn.DataContext is ViewModels.StationViewModel vm)
|
||||
vm.StopHardnessUp();
|
||||
}
|
||||
|
||||
private void OnHardnessDownPress(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
if (sender is Button btn && btn.DataContext is ViewModels.StationViewModel vm)
|
||||
vm.StartHardnessDown();
|
||||
}
|
||||
|
||||
private void OnHardnessDownRelease(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
if (sender is Button btn && btn.DataContext is ViewModels.StationViewModel vm)
|
||||
vm.StopHardnessDown();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user