AddLanguage() public method

public AddLanguage ( string n ) : void
n string
return void
コード例 #1
0
 internal void Insert()
 {
     if (ModuleConfig.StorageType == StorageType.MySql)
     {
         CreateMySqlTableIfNotExists();
         if (LanguageList.Instance.Exists(Name))
         {
         }
         else
         {
             var query = "INSERT INTO `tmodule_languages` (`name`) VALUES ('" + Name + "');";
             Query.ExecuteMySql(query);
             GetByName(Name);
             LanguageData.AddLanguage(this);
         }
     }
 }