zoukankan      html  css  js  c++  java
  • silverlight 添加配置项

    MainApp.wet 下面webconfig,index

     Web.config

    <!--10分钟:首页更新时间间隔-->
        <add key="UpdateTimespan" value="10"/>

    index.asp.

     UpdateTimespan=<% = UpdateTimespan %>

    index.asp.cs.

     public string UpdateTimespan;

     UpdateTimespan = System.Configuration.ConfigurationManager.AppSettings["UpdateTimespan"];

    MainApp.app

     public static string UpdateTimespan;

    common

    cfgmgr

     else if (param.Key == "UpdateTimespan")
                        CfgMgr.UpdateTimespan = param.Value;

    使用

     myDispatcherTimer.Interval = new TimeSpan(0, 0, int.Parse(Common.CfgMgr.UpdateTimespan.Trim()), 0);

    第二部分

    <!--启用老银行接口 1;启动新接口 0 两者不可并行-->
        <add key="StartOldBalance" value="1"/>
        <!--处理时间会有个偏差-->
        <add key="Offsettime" value="2"/>

     public static string StartOldBalance = GetConfigValue("StartOldBalance");
            public static string Offsettime= GetConfigValue("Offsettime");

    直接用

  • 相关阅读:
    mysql显示乱码
    aws常用命令
    Hive分析窗口函数(一) SUM,AVG,MIN,MAX
    Hive函数介绍
    Apache Drill 调研学习
    公有云与私有云对比分析报告
    python3 使用libvirt 相关安装
    libvirt虚拟库
    Reveal CocoaPods的使用
    AFNetworking 2.0 使用
  • 原文地址:https://www.cnblogs.com/hl3292/p/1934237.html
Copyright © 2011-2022 走看看