Beispiel #1
0
 public ActionResult ReloadConfig()
 {
     if (Request.IsLocal)
     {
         AppConfig.ReloadCurrent();
         SqlData.ReloadCurrent();
         UISettings.Reload();
         LangTexts.Reload();
         SystemCodes.Reload();
         return(Content("刷新成功"));
     }
     else
     {
         return(Content("非法链接"));
     }
 }
 private void btnLoad_Click(object sender, RoutedEventArgs e)
 {
     UISettings.Reload();
     this.DataContext = UISettings.Current;
 }