/// <summary>
        /// 平台B向左移动
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MoveLeftB(object sender, RoutedEventArgs e)
        {
            //判断键盘按下是否是Ctrl键
            if ((Keyboard.Modifiers & ModifierKeys.Control) == ModifierKeys.Control)
            {
                distance = 50;
            }
            else
            {
                distance = 10;
            }
            DoTaskParameterItem doTaskParameter           = null;
            Dictionary <string, DoTaskParameterItem> keys = TaskInoke.GetInterfaces();

            foreach (var item in keys)
            {
                if (item.Key.Contains("movehorizontalleftB"))
                {
                    doTaskParameter = item.Value;
                    doTaskParameter.Paramters[0].Value = distance.ToString();
                    TaskInoke.DoInterface(doTaskParameter.Url, doTaskParameter);
                    distanceBX.Text = TaskInoke.GetMoveB().ToString();
                    break;
                }
            }
        }
        /// <summary>
        /// 全部复位
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void AllReset(object sender, RoutedEventArgs e)
        {
            try
            {
                DoTaskParameterItem doTaskParameter           = null;
                Dictionary <string, DoTaskParameterItem> keys = TaskInoke.GetInterfaces();
                foreach (var item in keys)
                {
                    if (item.Key.Contains("horizontalClampBtozero"))
                    {
                        doTaskParameter = item.Value;

                        TaskInoke.DoInterface(doTaskParameter.Url, doTaskParameter);
                        ElectriclDisB.Text = TaskInoke.GetMoClampB().ToString();
                    }
                    else if (item.Key.Contains("horizontalClampAtozero"))
                    {
                        doTaskParameter = item.Value;

                        TaskInoke.DoInterface(doTaskParameter.Url, doTaskParameter);
                        ElectriclDisA.Text = TaskInoke.GetMoClampA().ToString();
                    }
                    else if (item.Key.Contains("vectrialtozero"))
                    {
                        doTaskParameter = item.Value;

                        TaskInoke.DoInterface(doTaskParameter.Url, doTaskParameter);
                        distanceZ.Text = TaskInoke.GetVertical().ToString();
                    }
                    else if (item.Key.Contains("horizontalAtozero"))
                    {
                        doTaskParameter = item.Value;
                        TaskInoke.DoInterface(doTaskParameter.Url, doTaskParameter);
                        distanceAX.Text = TaskInoke.GetMoveA().ToString();
                    }
                    else if (item.Key.Contains("horizontalBtozero"))
                    {
                        doTaskParameter = item.Value;
                        TaskInoke.DoInterface(doTaskParameter.Url, doTaskParameter);
                        distanceBX.Text = TaskInoke.GetMoveB().ToString();
                    }
                }
            }
            catch (Exception ex)
            {
                Log.error("全部归位问题" + ex.Message);
            }
        }
        /// <summary>
        /// 左右平台B归零
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void RefreshB(object sender, RoutedEventArgs e)
        {
            DoTaskParameterItem doTaskParameter           = null;
            Dictionary <string, DoTaskParameterItem> keys = TaskInoke.GetInterfaces();

            foreach (var item in keys)
            {
                if (item.Key.Contains("horizontalBtozero"))
                {
                    doTaskParameter = item.Value;
                    TaskInoke.DoInterface(doTaskParameter.Url, doTaskParameter);
                    distanceBX.Text = TaskInoke.GetMoveB().ToString();
                    break;
                }
            }
        }