Exemplo n.º 1
0
        private void LoadLocalizedConsoleCommandHelp()
        {
            var db = SchumixBase.DManager.Query("SELECT Id, Language, Command, Text FROM localized_console_command_help");

            if (!db.IsNull())
            {
                foreach (DataRow row in db.Rows)
                {
                    var map = new LocalizedConsoleCommandHelp();
                    map.Id       = row["Id"].ToInt32();
                    map.Language = row["Language"].ToString();
                    map.Command  = row["Command"].ToString();
                    map.Text     = row["Text"].ToString();
                    _LocalizedConsoleCommandHelpMap.Add(map.Language + map.Command, map);
                }
            }
        }
Exemplo n.º 2
0
 private void LoadLocalizedConsoleCommandHelp()
 {
     var db = SchumixBase.DManager.Query("SELECT Id, Language, Command, Text FROM localized_console_command_help");
     if(!db.IsNull())
     {
         foreach(DataRow row in db.Rows)
         {
             var map = new LocalizedConsoleCommandHelp();
             map.Id = row["Id"].ToInt32();
             map.Language = row["Language"].ToString();
             map.Command = row["Command"].ToString();
             map.Text = row["Text"].ToString();
             _LocalizedConsoleCommandHelpMap.Add(map.Language + map.Command, map);
         }
     }
 }