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");

    直接用

  • 相关阅读:
    eclipse,tortoise_svn
    sftp 命令
    shell 学习文档
    书籍,文档:shell
    V2配合proxifier以及免费ip的获取方法
    算法 | FastSLAM 1.0
    算法 | k-d树
    C++ | inline关键字和内联函数
    Python | Lambda 函数
    算法 | A*算法和权重A* 算法
  • 原文地址:https://www.cnblogs.com/hl3292/p/1934237.html
Copyright © 2011-2022 走看看