public InfomationProperty()
 {
     m_title      = new LanguageParam();
     m_provider   = new LanguageParam();
     m_contentVer = "01.00";
     MainForm.m_mainForm.previewHomePictureBox.ImageLocation  = null;
     MainForm.m_mainForm.previewHomePictureBox.Image          = null;
     MainForm.m_mainForm.previewStartPictureBox.ImageLocation = null;
     MainForm.m_mainForm.previewStartPictureBox.Image         = null;
     MainForm.m_mainForm.pkgPictureBox.ImageLocation          = null;
     MainForm.m_mainForm.pkgPictureBox.Image = null;
 }
        private bool checkLangaugeParam(LanguageParam lp, string prefix)
        {
            bool result = true;

            Encoding.GetEncoding("utf-8");
            string msg;

            if (lp.m_param != null)
            {
                PropertyInfo[] properties = lp.m_param.GetType().GetProperties(BindingFlags.Instance | BindingFlags.Public | BindingFlags.FlattenHierarchy);
                PropertyInfo[] array      = properties;
                foreach (PropertyInfo propertyInfo in array)
                {
                    object[] customAttributes = propertyInfo.GetCustomAttributes(typeof(SaveAttribute), false);
                    if (0 < customAttributes.Length)
                    {
                        string text = (string)propertyInfo.GetValue(lp.m_param, null);
                        if (!string.IsNullOrEmpty(text) && !checkStringByteSize(out msg, text, 127))
                        {
                            string text2 = "[" + GetPropertyDisplayName(lp, "m_param") + "] -> [" + GetPropertyDisplayName(propertyInfo) + "] : ";
                            msg = prefix + text2 + msg;
                            Dialog.AddMsg(msg);
                            result = false;
                        }
                    }
                }
            }
            if (!checkStringNullOrEmpty(out msg, lp.m_default))
            {
                msg  = prefix + "[" + GetPropertyDisplayName(lp, "m_default") + "] : " + msg;
                msg += ErrorMsg.GetString(ErrorMsg.DEFINES.MUST_PARAMETER);
                msg += "\n";
                Dialog.AddMsg(msg);
                result = false;
            }
            else if (!checkStringByteSize(out msg, lp.m_default, 127))
            {
                msg = prefix + "[" + GetPropertyDisplayName(lp, "m_default") + "] : " + msg;
                Dialog.AddMsg(msg);
                result = false;
            }
            return(result);
        }