diff --git a/SlnMesnac.WPF/Page/IndexControl.xaml.cs b/SlnMesnac.WPF/Page/IndexControl.xaml.cs index 1ddcab0..e35135c 100644 --- a/SlnMesnac.WPF/Page/IndexControl.xaml.cs +++ b/SlnMesnac.WPF/Page/IndexControl.xaml.cs @@ -64,7 +64,67 @@ namespace SlnMesnac.WPF.Page private void btnRight_MouseUp(object sender, MouseButtonEventArgs e) { indexControlViewModel.GimbalOperate("right", false); - } + } + + /// + /// 变倍 + + /// + /// + /// + 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); + } #endregion /// @@ -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); - } } }