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