-
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
-
ic
说明: powerbuilder 9.0 写的ic读卡器示例用于读写ic卡编译无错误,当时为了写读卡器接口写的(powerbuilder 9.0 Written ic ic card reader for reading and writing examples compile without error, then write in order to write Reader Interface)
- 2013-08-13 00:51:39下载
- 积分:1
-
twi285
一个可以解ax2+bx+c 0方程的程序,输入a,b,c即可得到结果X1,X2,包内有详细VB代码,(A solution ax2+ bx+ c 0 equation application, type a, b, c can get results X1, X2, there is detailed VB code,)
- 2017-04-12 14:26:25下载
- 积分:1
-
HWUYMF
该程序实现了一个简单画笔的功能,用vc++实现,是一个很好的小应用程序(The program implements a simple function of brush, use vc++ realize, is a very good application)
- 2017-04-08 10:19:37下载
- 积分:1
-
c# 多线程操作例子源码
多线程操作 [实例截图] [核心代码]using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Threading;namespace ThreadMore{ public partial class Form3 : Form { public Form3() { InitializeComponent(); } // 发送数据包的类 public class SendPackage { Package pack; // 保存将被发送的数据包 int quantity = 1; // 数据包的个数 // 发送数据包 public SendPackage(Package p, int count) { pack = p; quantity = count; } public void ThreadRun() { // 发送指定数量的数据包 for (int looper = 1; looper
- 2015-03-20下载
- 积分:1
-
bb1
说明: 用队列或栈实现一个简单的停车场管理的系统(Queue or stack with the realization of a simple car park management system)
- 2008-12-08 16:49:34下载
- 积分:1
-
5777711
OPNET 无线仿真 PPT + 源码 好好学习吧(OPNET wireless simulation PPT source code)
- 2021-02-21 14:29:42下载
- 积分:1
-
C#实现挂机锁,挂机 参考 实例源码
挂机时锁定可以参考这个实例
- 2013-01-19下载
- 积分:1
-
easyshell
不错的后门代码,用了一些驱动技术来隐藏进程,隐藏注册表,希望对大家有所帮助(good backdoor code, used some technology-driven process to conceal, hide the registry, and I hope to help everyone)
- 2007-04-16 03:55:07下载
- 积分:1
-
dbn
深度置信网,经过调试,运行没有问题。运行时有点占内存,速度稍慢。(Deep Belief Nets, Restricted Boltzmann Maching)
- 2021-03-14 00:59:24下载
- 积分:1