change - 添加云台控制:变倍、变焦

master
wenjy 2 months ago
parent 7fb35e2dda
commit 573a50e49c

@ -64,7 +64,67 @@ namespace SlnMesnac.WPF.Page
private void btnRight_MouseUp(object sender, MouseButtonEventArgs e)
{
indexControlViewModel.GimbalOperate("right", false);
}
}
/// <summary>
/// 变倍 +
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnZoomIn_MouseDown(object sender, MouseButtonEventArgs e)
{
indexControlViewModel.GimbalOperate("zoomIn", true);
}
private void btnZoomIn_MouseUp(object sender, MouseButtonEventArgs e)
{
indexControlViewModel.GimbalOperate("zoomIn", false);
}
/// <summary>
/// 变倍 +
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnZoomOut_MouseDown(object sender, MouseButtonEventArgs e)
{
indexControlViewModel.GimbalOperate("zoomOut", true);
}
private void btnZoomOut_MouseUp(object sender, MouseButtonEventArgs e)
{
indexControlViewModel.GimbalOperate("zoomOut", false);
}
/// <summary>
/// 变焦
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnFocusFar_MouseDown(object sender, MouseButtonEventArgs e)
{
indexControlViewModel.GimbalOperate("focusFar", true);
}
private void btnFocusFar_MouseUp(object sender, MouseButtonEventArgs e)
{
indexControlViewModel.GimbalOperate("focusFar", false);
}
/// <summary>
/// 变焦
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnFocusNear_MouseDown(object sender, MouseButtonEventArgs e)
{
indexControlViewModel.GimbalOperate("focusNear", true);
}
private void btnFocusNear_MouseUp(object sender, MouseButtonEventArgs e)
{
indexControlViewModel.GimbalOperate("focusNear", false);
}
#endregion
/// <summary>
@ -188,44 +248,5 @@ namespace SlnMesnac.WPF.Page
}
}
private void btnZoomIn_MouseDown(object sender, MouseButtonEventArgs e)
{
indexControlViewModel.GimbalOperate("zoomIn", true);
}
private void btnZoomIn_MouseUp(object sender, MouseButtonEventArgs e)
{
indexControlViewModel.GimbalOperate("zoomIn", false);
}
private void btnZoomOut_MouseDown(object sender, MouseButtonEventArgs e)
{
indexControlViewModel.GimbalOperate("zoomOut", true);
}
private void btnZoomOut_MouseUp(object sender, MouseButtonEventArgs e)
{
indexControlViewModel.GimbalOperate("zoomOut", false);
}
private void btnFocusFar_MouseDown(object sender, MouseButtonEventArgs e)
{
indexControlViewModel.GimbalOperate("focusFar", true);
}
private void btnFocusFar_MouseUp(object sender, MouseButtonEventArgs e)
{
indexControlViewModel.GimbalOperate("focusFar", false);
}
private void btnFocusNear_MouseDown(object sender, MouseButtonEventArgs e)
{
indexControlViewModel.GimbalOperate("focusNear", true);
}
private void btnFocusNear_MouseUp(object sender, MouseButtonEventArgs e)
{
indexControlViewModel.GimbalOperate("focusNear", false);
}
}
}

Loading…
Cancel
Save