-
C#自动更新服务(本地服务安装)
using System;using System.Collections.Generic;using System.Linq;using System.Text;using Common.WinService;using Common.Log;using System.Threading;using Common.Net;using System.Text.RegularExpressions;namespace Collection.AutoRunner{ //获取学生信息 public class Service_Update_Data : IWindowsService { private ILogWriter _logWriter = null; private const string logCategory = "Services.Info"; private string logInfoSource = "Update_Data"; private const string logErrorCategory = "Services.Error"; private const string logErrorSource = "Update_Data_Error"; private bool BeStop = true; private System.Timers.Timer timer = null; public void Start(Common.Log.ILogWriter logWriter, string gameCode) { gameCode = gameCode.ToUpper(); logInfoSource = gameCode; _logWriter = logWriter; BeStop = false; StartRequestData(); } int stata = 0; private void StartRequestData() { try { #region 配置 //时间频率 var UpdateStudentSpan = ServiceHelper.GetInterval("UpdateData"); //更新学生开始时间 var studentbegintime = ServiceHelper.GetInterval("StudentBeginTime"); //更新学生结束时间 var studentendtime = ServiceHelper.GetInterval("StudentEndTime"); //是否更新学生基本信息:true为更新 false为不更新 var IsUpdateStudnet =Convert.ToBoolean(ServiceHelper.GetSystemConfig("IsUpdateStudnet")); #endregion timer = ServiceHelper.ExcuteByTimer(UpdateStudentSpan, () => { int timeHour = DateTime.Now.Hour; if (timeHour == 3) stata = 0; #region 更新学生基本信息 if (studentbegintime
- 2015-03-11下载
- 积分:1
-
gzobal
学习WTL编程的例子,可以实现类似 net2003的Tab界面()
- 2018-06-20 12:00:36下载
- 积分:1
-
ShareMem
通过内存映射对象实现程序和进程间的内存共享。(Implement programs and memory sharing between processes through a memory-mapped object.)
- 2016-10-21 18:00:22下载
- 积分:1
-
7308961
ansi字符串与Unicode字符串转换的代码 包括UTP-8(ANSI string with Unicode string conversion code Including UTP - 8 -)
- 2017-07-15 01:29:32下载
- 积分:1
-
一个读取硬盘序列号与CPU序列号的DLL
VC写的,一个读取硬盘序列号与CPU序列号的DLL,大家可以利用它来为自己的软件提供保护机制。(VC written by a reader drives and CPU serial number sequence, the DLL, you can use it for its own software to provide protection mechanisms.)
- 2005-05-02 16:36:26下载
- 积分:1
-
将图片复制到剪贴板以及将剪贴板中的图片黏贴到程序 实例源码
将图片复制到剪贴板以及将剪贴板中的图片黏贴到程序 实例源码
- 2013-09-14下载
- 积分:1
-
search_file
说明: 实现目录中文件查找,遍历,基本实现dir功能(Document the achievement of the directory search, traversal, the basic function of the realization of dir)
- 2009-08-17 21:48:22下载
- 积分:1
-
2008031422530437
读书专用方便快接,大家不防用用看.好下在 (Dedicated to facilitate faster access to study, do not prevent use by everyone look. Good in)
- 2009-02-24 17:09:37下载
- 积分:1
-
c# 定时开机源码下载
远程服务器通过局域网来控制开机,要主板支持Lan开机进入CMOS参数设置。选择电源管理设置“Power Management Setup”菜单。将局域网启动置为enable即可;观察发现不同的CMOS的局域网启动名称不同。注意一下关键字即可 LAN XXXXXX Power UP 有这些关键字就可能是。
- 2014-01-26下载
- 积分:1
-
arp
在windows平台下的一个ARP程序,有些安装VC++软件不完整的可能不包含部分同文件,Iphlpapi.h可以下载后放进include文件夹下面即可,通过程序帮助理解协议的本身(In a windows platform ARP procedures, and some installation VC++ Incomplete software may not contain some of the same document, Iphlpapi.h can be downloaded into the folder include the following can, through the procedure to help understand the agreement itself)
- 2008-04-15 09:08:34下载
- 积分:1