/// <summary> /// Get model's description in specify language /// </summary> /// <param name="lang"></param> /// <returns></returns> public string GetDescriptionByLanguage(LanguageCode lang) { Model_Lang _model_lang = GetModel_LangByLanguage(lang); if (_model_lang != null) { return(_model_lang.Description); } return(""); }
/// <summary> /// Get model's introduction in specify language /// </summary> /// <param name="lang"></param> /// <returns></returns> public string GetIntroductionByLanguage(LanguageCode lang) { Model_Lang _model_lang = GetModel_LangByLanguage(lang); if (_model_lang != null) { return(_model_lang.Introduction); } return(""); }
private void WriteToAttributeModel_Lang(DataTable dt) { foreach (DataRow _row in dt.Rows) { Model_Lang _model_lang = new Model_Lang(); _model_lang.Description = (string)(_row["MODEL_DESC"] + ""); _model_lang.Introduction = (string)(_row["EXTENDED_DESC"] + ""); _model_lang.Language = MyExtension.GetLanguageCodeByPISLanguageID((string)_row["LANGID"]); this._Model_Langs.Add(_model_lang); } }