/// <summary>
 /// 设定机器人类型
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void cboRobotType_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     try
     {
         e.Handled = true;
         if (cboRobotType.IsMouseOver)
         {
             TypeRobot_enum typeRobot_e = (TypeRobot_enum)cboRobotType.SelectedIndex;
             CreateRobotSetting(typeRobot_e);//创建参数界面
         }
     }
     catch (Exception ex)
     {
         Log.L_I.WriteError(NameClass, ex);
     }
 }
        /// <summary>
        /// 创建参数显示界面
        /// </summary>
        /// <param name="typeRobot_e"></param>
        void CreateRobotSetting(TypeRobot_enum typeRobot_e)
        {
            try
            {
                int intHeight = 140;
                int intWidth  = 350;
                switch (typeRobot_e)
                {
                case TypeRobot_enum.Null:
                    g_BaseUCComInterface = null;
                    break;

                case TypeRobot_enum.YAMAH_Ethernet:
                    g_BaseUCComInterface = new UCSetInterfaceEthernet();
                    intHeight            = 280;
                    intWidth             = 435;
                    break;

                case TypeRobot_enum.YAMAH_Serial:
                    g_BaseUCComInterface = null;
                    break;

                case TypeRobot_enum.Epsion_Ethernet:
                    g_BaseUCComInterface = new UCSetInterfaceEthernet();
                    intHeight            = 280;
                    intWidth             = 435;
                    break;

                case TypeRobot_enum.NaChi_Ethernet:
                    g_BaseUCComInterface = new UCSetInterfaceEthernet();
                    intHeight            = 280;
                    intWidth             = 435;
                    break;

                case TypeRobot_enum.Epsion_Serial:
                    g_BaseUCComInterface = null;
                    break;
                }
                //添加控件显示
                AddChildCtr(intHeight, intWidth);
            }
            catch (Exception ex)
            {
                Log.L_I.WriteError(NameClass, ex);
            }
        }