摘要: int iFormWidth, iFormHeight;//初始窗体宽高 //窗体加载事件 private void Form1_Load(object sender, EventArgs e) { iFormWidth = this.Width;//初始宽 iFormHeight = this.H 阅读全文
posted @ 2023-11-03 20:31 芈璐 阅读(539) 评论(0) 推荐(0) 编辑
摘要: protected bool getTimeSpan(string timeStr) { //判断当前时间是否在工作时间段内 string _strWorkingDayAM = "07:00"; string _strWorkingDayPM = "19:00"; TimeSpan dspWorki 阅读全文
posted @ 2023-11-03 19:37 芈璐 阅读(107) 评论(0) 推荐(0) 编辑
摘要: using System.Net.Mail; MailMessage mmsg = new MailMessage(); mmsg.From = new MailAddress("");//发件邮箱地址 mmsg.To.Add("");//收件邮箱地址 mmsg.Subject = "";//邮件标 阅读全文
posted @ 2023-11-03 00:31 芈璐 阅读(14) 评论(0) 推荐(1) 编辑
摘要: using System.Speech.Synthesis; SpeechSynthesizer speech = new SpeechSynthesizer(); speech.Speak("");//同步 speech.SpeakAsync("");//异步 阅读全文
posted @ 2023-11-03 00:02 芈璐 阅读(43) 评论(0) 推荐(0) 编辑