public ActionResult ReloadConfig() { if (Request.IsLocal) { AppConfig.ReloadCurrent(); SqlData.ReloadCurrent(); UISettings.Reload(); LangTexts.Reload(); SystemCodes.Reload(); return(Content("刷新成功")); } else { return(Content("非法链接")); } }
public static string GetLang(LangTexts id, params object[] args) { return(GLang.GetLang((int)id, args)); }
private void btnLoad_Click(object sender, RoutedEventArgs e) { LangTexts.Reload(); this.DataContext = LangTexts.Current; listItems.ItemsSource = LangTexts.Current.Items; }