예제 #1
0
        private void LoadLocalizedCommandHelp()
        {
            var db = SchumixBase.DManager.Query("SELECT Id, Language, Command, Rank, Text FROM localized_command_help");

            if (!db.IsNull())
            {
                foreach (DataRow row in db.Rows)
                {
                    var map = new LocalizedCommandHelp();
                    map.Id       = row["Id"].ToInt32();
                    map.Language = row["Language"].ToString();
                    map.Command  = row["Command"].ToString();
                    map.Rank     = row["Rank"].ToInt32();
                    map.Text     = row["Text"].ToString();
                    _LocalizedCommandHelpMap.Add(map.Language + map.Command, map);
                }
            }
        }
예제 #2
0
파일: CacheDB.cs 프로젝트: Schumix/Schumix2
 private void LoadLocalizedCommandHelp()
 {
     var db = SchumixBase.DManager.Query("SELECT Id, Language, Command, Rank, Text FROM localized_command_help");
     if(!db.IsNull())
     {
         foreach(DataRow row in db.Rows)
         {
             var map = new LocalizedCommandHelp();
             map.Id = row["Id"].ToInt32();
             map.Language = row["Language"].ToString();
             map.Command = row["Command"].ToString();
             map.Rank = row["Rank"].ToInt32();
             map.Text = row["Text"].ToString();
             _LocalizedCommandHelpMap.Add(map.Language + map.Command, map);
         }
     }
 }