摘要:
using System.Runtime.InteropServices;[DllImport("kernel32.dll")] public static extern bool Beep(int freq,int duration); public void PlayBeep(){//调用Beep(800,3000); } 阅读全文
摘要:
一、时间间隔 /// summary时间间隔/summary /// param name="DateTime1"第一个日期和时间/param /// param name="DateTime2"第二个日期和时间/param /// returns同一天的相隔的分钟的整数部分/returns private int DateDiff(DateTime DateTime1, DateTime DateTime2) { TimeSpan ts1 = new TimeSpan(DateTime1.Ticks); TimeSpan ts2 = new TimeSpan( 阅读全文