/// <summary>
    /// 检测提交数据
    /// </summary>
    /// <returns></returns>
    public bool checkData()
    {
        if (uploadImage.sprite == null)
        {
            DialogManager.createToastDialog().setToastText(CommonData.getText(68));
            return(false);
        }
        if (uploadPath == null && uploadPath.Length == 0)
        {
            DialogManager.createToastDialog().setToastText(CommonData.getText(69));
            return(false);
        }
        if (inputName.text == null || inputName.text.Length == 0)
        {
            DialogManager.createToastDialog().setToastText(CommonData.getText(70));
            return(false);
        }
        if (inputHorizontalNumber.text == null || inputHorizontalNumber.text.Length == 0)
        {
            DialogManager.createToastDialog().setToastText(CommonData.getText(71));
            return(false);
        }
        if (inputVerticalNumber.text == null || inputVerticalNumber.text.Length == 0)
        {
            DialogManager.createToastDialog().setToastText(CommonData.getText(72));
            return(false);
        }
        if (!CheckUtil.CheckIsNumber(inputHorizontalNumber.text))
        {
            DialogManager.createToastDialog().setToastText(CommonData.getText(73));
            return(false);
        }
        if (!CheckUtil.CheckIsNumber(inputVerticalNumber.text))
        {
            DialogManager.createToastDialog().setToastText(CommonData.getText(74));
            return(false);
        }
        int horizontalNumber = Convert.ToInt32(inputHorizontalNumber.text);
        int verticalNumber   = Convert.ToInt32(inputVerticalNumber.text);

        if (horizontalNumber > 50 || horizontalNumber < 2)
        {
            DialogManager.createToastDialog().setToastText(CommonData.getText(75));
            return(false);
        }
        if (verticalNumber > 50 || verticalNumber < 2)
        {
            DialogManager.createToastDialog().setToastText(CommonData.getText(76));
            return(false);
        }
        return(true);
    }
    /// <summary>
    /// 检测提交数据
    /// </summary>
    /// <returns></returns>
    public bool CheckData()
    {
        if (uploadImage.sprite == null)
        {
            DialogManager.createToastDialog().setToastText(CommonData.getText(68));
            return(false);
        }
        if (uploadPath == null && uploadPath.Length == 0)
        {
            DialogManager.createToastDialog().setToastText(CommonData.getText(69));
            return(false);
        }
        if (inputName.text == null || inputName.text.Length == 0)
        {
            DialogManager.createToastDialog().setToastText(CommonData.getText(70));
            return(false);
        }
        if (inputDescription.text == null || inputDescription.text.Length == 0)
        {
            DialogManager.createToastDialog().setToastText(CommonData.getText(126));
            return(false);
        }
        if (inputHorizontalNumber.text == null || inputHorizontalNumber.text.Length == 0)
        {
            DialogManager.createToastDialog().setToastText(CommonData.getText(71));
            return(false);
        }
        if (inputVerticalNumber.text == null || inputVerticalNumber.text.Length == 0)
        {
            DialogManager.createToastDialog().setToastText(CommonData.getText(72));
            return(false);
        }
        if (!CheckUtil.CheckIsNumber(inputHorizontalNumber.text))
        {
            DialogManager.createToastDialog().setToastText(CommonData.getText(73));
            return(false);
        }
        if (!CheckUtil.CheckIsNumber(inputVerticalNumber.text))
        {
            DialogManager.createToastDialog().setToastText(CommonData.getText(74));
            return(false);
        }
        int horizontalNumber = Convert.ToInt32(inputHorizontalNumber.text);
        int verticalNumber   = Convert.ToInt32(inputVerticalNumber.text);

        if (horizontalNumber > 50 || horizontalNumber < 2)
        {
            DialogManager.createToastDialog().setToastText(CommonData.getText(75));
            return(false);
        }
        if (verticalNumber > 50 || verticalNumber < 2)
        {
            DialogManager.createToastDialog().setToastText(CommonData.getText(76));
            return(false);
        }
        bool isToggleSelected = false;

        if (listTag != null)
        {
            foreach (Toggle item in listTag)
            {
                if (item.isOn)
                {
                    isToggleSelected = true;
                }
            }
        }
        if (!isToggleSelected)
        {
            DialogManager.createToastDialog().setToastText(CommonData.getText(127));
            return(false);
        }
        return(true);
    }