private void LoadLocalizedWarning() { var db = SchumixBase.DManager.Query("SELECT Id, Language, Command, Text FROM localized_warning"); if (!db.IsNull()) { foreach (DataRow row in db.Rows) { var map = new LocalizedWarning(); map.Id = row["Id"].ToInt32(); map.Language = row["Language"].ToString(); map.Command = row["Command"].ToString(); map.Text = row["Text"].ToString(); _LocalizedWarningMap.Add(map.Language + map.Command, map); } } }
private void LoadLocalizedWarning() { var db = SchumixBase.DManager.Query("SELECT Id, Language, Command, Text FROM localized_warning"); if(!db.IsNull()) { foreach(DataRow row in db.Rows) { var map = new LocalizedWarning(); map.Id = row["Id"].ToInt32(); map.Language = row["Language"].ToString(); map.Command = row["Command"].ToString(); map.Text = row["Text"].ToString(); _LocalizedWarningMap.Add(map.Language + map.Command, map); } } }