登录
首页 » C# » 用c#写的一个每隔一小时提醒你保护眼睛的 服务程序,需要注册为服务才可用...

用c#写的一个每隔一小时提醒你保护眼睛的 服务程序,需要注册为服务才可用...

于 2022-02-05 发布 文件大小:15.74 kB
0 137
下载积分: 2 下载次数: 1

代码说明:

用c#写的一个每隔一小时提醒你保护眼睛的 服务程序,需要注册为服务才可用-used to write c# in a one-hour intervals to remind you of eye protection service procedures, required to be registered before they can use the service

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 并联机构运动控制
    新型并联机器人步进电机运动控制卡控制,可以实现直线、圆弧插补,点位运动,钻孔、沟槽、斜面等加工功能。
    2022-04-20 08:50:26下载
    积分:1
  • division
    图像的分割处理,可以将图像中的数字分割找出(IMAGE division)
    2010-08-28 08:43:02下载
    积分:1
  • Temperature(ADC0)
    采用c8051f020芯片,实现12位ADC0采样芯片温度传感器,将温度通过串口0发送到PC机! ( Using C8051F020 chip, the implementation of 12 bit ADC0 sampling chip temperature sensor, the temperature through the serial port 0 is sent to the PC machine! )
    2011-08-15 20:32:38下载
    积分:1
  • netba
    基于matlab编写的BA无标度网络源代码,具有很好的指导意义(BA_net based on matlab)
    2012-08-25 16:16:24下载
    积分:1
  • c# 扫描IP Http Header
    c# 扫描IP Http Headerusing 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;using System.IO;namespace HScan{ public partial class Form1 : Form { int _currentThreads = 0; int _maxThreads = 100; Thread main = null; Thread mt = null; List threads = new List(); public Form1() { InitializeComponent(); Control.CheckForIllegalCrossThreadCalls = false; } private void btnStart_Click(object sender, EventArgs e) { btnStart.Enabled = false; if (txtStart.Text.Trim() == "") { MessageBox.Show("起始IP不能为空."); return; } if (txtEnd.Text.Trim() == "") { MessageBox.Show("结束IP不能为空."); return; } int ts = Convert.ToInt32(txtThreads.Text); _maxThreads = ts; string startIp = txtStart.Text; string endIp = txtEnd.Text; TParameter tp=new TParameter(); tp.StartIp=startIp; tp.EndIp=endIp; tp.ThreadCount=ts; main = new Thread(new ParameterizedThreadStart(StartMe)); main.Start(tp); } protected void ThreadManage() { Thread c=null; while (true) { System.Object lockThis = new System.Object(); lock (lockThis) { for (int i = 0; i < threads.Count; i ) { if (threads[i] != null && !threads[i].IsAlive) { c = threads[i]; break; } } if (c != null) { threads.Remove(c); } } } } protected void StartMe(object ob) { mt = new Thread(new ThreadStart(ThreadManage)); mt.Start(); TParameter p = ob as TParameter; string curIp = p.StartIp; while (true) { for (int i = 0; i < _maxThreads; i ) { if (curIp != "") { if (_currentThreads >= _maxThreads) break; System.Object lockThis = new System.Object(); lock (lockThis) { _currentThreads ; if (_currentThreads > _maxThreads) _currentThreads = _maxThreads; string tip = curIp; Thread t = new Thread(new ParameterizedThreadStart(Run)); t.Start(tip); threads.Add(t); curIp = IPUtility.getLastIp(curIp, p.EndIp, 1); } } else { break; } } } } protected void Run(object ob) { string ip = ob.ToString(); SocketGetHead h = new SocketGetHead(); string ret = h.GetHtml(ip, 80); if (ret.IndexOf("DVRDVS-Webs") > 0) { ListViewItem item = new ListViewItem(); item.SubItems[0].Text = (listView1.Items.Count 1).ToString(); ListViewItem.ListViewSubItem lvSubItem = new ListViewItem.ListViewSubItem(); lvSubItem.Text = ip; item.SubItems.Add(lvSubItem); lvSubItem = new ListViewItem.ListViewSubItem(); lvSubItem.Text = "DVRDVS-Webs"; item.SubItems.Add(lvSubItem); listView1.Items.Add(item); } System.Object lockThis = new System.Object(); lock(lockThis) { lblCurIp.Text = ip; _currentThreads--; if (_currentThreads < 0) _currentThreads = 0; } } private void tsmCopy_Click(object sender, EventArgs e) { if (listView1.SelectedItems.Count > 0) { string ip = listView1.SelectedItems[0].SubItems[1].Text; Clipboard.SetText(ip); } } private void tsmExport_Click(object sender, EventArgs e) { StreamWriter writer = new StreamWriter(AppDomain.CurrentDomain.BaseDirectory "\export.txt",true); foreach (ListViewItem item in listView1.Items) { string ip=item.SubItems[1].Text; writer.WriteLine(ip); writer.Flush(); } writer.Flush(); writer.Close(); MessageBox.Show("导出成功!"); } private void Form1_FormClosing(object sender, FormClosingEventArgs e) { try { if (mt != null) { mt.Interrupt(); mt.Abort(); } foreach (Thread t in threads) { t.Interrupt(); t.Abort(); } if (main != null) { main.Interrupt(); main.Abort(); } } catch { } Thread.Sleep(5000); } private void btnStop_Click(object sender, EventArgs e) { try { if (mt != null) { mt.Interrupt(); mt.Abort(); } foreach (Thread t in threads) { t.Interrupt(); t.Abort(); } if (main != null) { main.Interrupt(); main.Abort(); } } catch { } btnStart.Enabled = true; } }}
    2014-06-23下载
    积分:1
  • ADOTest
    VC2005通过ADO连接Access2007数据库的简单Demo,系统Vista SP1 + Visual Studio 2005 + Office 2007 !!!(VC2005 connected Access2007 database through ADO simple Demo, system, Vista SP1+ Visual Studio 2005+ Office 2007!!!)
    2009-06-20 14:27:01下载
    积分:1
  • D20_SHA204_Demo
    ATMEL加密芯片ATSHA204A例子代码,部分代码优化,可以使用,MCU环境为ATMEL的ATSAMD20E16,如果有兴趣可供下载(ATMEL crypto security IC code. The Code Test was OK ,and Ease of Application.The micro Controler is ATMEL SAMD20,welcome Download。)
    2016-08-09 11:57:47下载
    积分:1
  • 80Mhz~100Mhz频谱分析仪
    80Mhz-100Mhz频谱仪以STM32F429为核心控制芯片,配合锁相环芯片PFFC2072实现了本振源电路,设计并制作了80Mhz-100Mhz频谱分析仪。该系统由本振源电路、混频电路、窄带滤波电路、检波电路、数字采集与显示电路五部分组成。其中,本振源部分由RFFC2072结合环路滤波、功率分配隔离、程控放大以及锁定观测等外围电路构成。
    2022-05-17 17:24:26下载
    积分:1
  • dataprocesswithvcandmatlab
    如何在vc环境下利用matlab工具箱进行数据处理(how to do data processing in vc++ with the toolbox of matlab)
    2009-11-22 15:57:22下载
    积分:1
  • My_first_BP
    matlab实现BP模型。注释明白直观,使用方便。(Matlab implements BP model. The notes are clear, intuitive and easy to use.)
    2020-06-21 20:00:02下载
    积分:1
  • 696518资源总数
  • 105885会员总数
  • 31今日下载