private void OnZJogButtonMouseDown(object sender, MouseEventArgs e) { Core.EnqueueZJog((sender as DirectionStepButton).JogDirection, (sender as DirectionStepButton).JogStep); }