/// <summary>
        /// 控制右灯
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ControlRightLed(object sender, RoutedEventArgs e)
        {
            if (RightStatus == false)
            {
                RightStatus = true;
            }
            else
            {
                RightStatus = false;
            }
            DoTaskParameterItem doTaskParameter           = null;
            Dictionary <string, DoTaskParameterItem> keys = TaskInoke.GetInterfaces();

            foreach (var item in keys)
            {
                if (item.Key.Contains("controlrightled"))
                {
                    doTaskParameter = item.Value;
                    doTaskParameter.Paramters[0].Value = RightStatus.ToString();
                    TaskInoke.DoInterface(doTaskParameter.Url, doTaskParameter);

                    break;
                }
            }
        }
        /// <summary>
        /// 垂直轴向下移动
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MoveDown(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("movevectrialdown"))
                {
                    doTaskParameter = item.Value;
                    doTaskParameter.Paramters[0].Value = distance.ToString();
                    TaskInoke.DoInterface(doTaskParameter.Url, doTaskParameter);
                    distanceZ.Text = TaskInoke.GetVertical().ToString();
                    break;
                }
            }
        }
        /// <summary>
        /// 左右平台B向右移动
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MoveB(object sender, RoutedEventArgs e)
        {
            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("movehorizontalrightB"))
                {
                    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 MainWindow_Loaded(object sender, RoutedEventArgs e)
 {
     leftMenus.ItemsSource     = MenuItems;
     interfaceList.ItemsSource = TaskInoke.GetInterfaces().ToList();
     Log.LogCallBack          += LogMsg;
     pages.SelectedIndex       = 0;
     leftMenus.SelectedIndex   = 0;
 }
        /// <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;
                }
            }
        }