当数据库时间与C#Windows应用程序中的系统时间匹配时,如何显示弹出窗口

编程入门 行业动态 更新时间:2024-10-28 20:28:01
本文介绍了当数据库时间与C#Windows应用程序中的系统时间匹配时,如何显示弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想在c#中显示弹出消息.我在DB中存储了不同候选人的面试时间.当系统时间与db中存储的面试计划时间相匹配时,我想显示已安排候选人面试的弹出消息... .. 看到我在数据库中存储了应聘者的面试时间,关于他在公司的面试时间.我有100个应聘者以不同的comapany进行面试.当日期和时间与当前时间和日期匹配时,我想显示弹出消息.阿利,你在6 pm接受采访 提前thnks

i want to show pop message in c#.i stored interview time for different candidates in DB.when system time matches with interview scheduled time stored in db i want to show pop up message that candidate interview is scheduled..... see i am stored interview time for candidate in db on what time he have interview in company.i have 100 of candidate going for interview in different comapany.when date and time matches with current time and date i want to show pop up message..aley u have interview on 6 pm thnks in advance

推荐答案

您需要 Windows服务! 示例:发送自动电子邮件警报的简单Windows服务 [ ^ ] MSDN:有关Windows服务的详细信息: Windows服务应用程序简介 [ ^ ] You need a Windows Service! Sample: Simple Windows Service which sends auto Email alerts[^] MSDN: Details about Windows Service: Introduction to Windows Service Applications[^]

如果它直接与DateTime相关,请使用DateTime.Compare方法: If its straight forward DateTime related stuff, use DateTime.Compare method: DateTime date1 = new DateTime(2009, 8, 1, 0, 0, 0); DateTime date2 = new DateTime(2009, 8, 1, 12, 0, 0); int result = DateTime.Compare(date1, date2); string relationship; if (result < 0) relationship = "is earlier than"; else if (result == 0) relationship = "is the same time as"; else relationship = "is later than"; Console.WriteLine("{0} {1} {2}", date1, relationship, date2); // output: // 8/1/2009 12:00:00 AM is earlier than 8/1/2009 12:00:00 PM

更多推荐

当数据库时间与C#Windows应用程序中的系统时间匹配时,如何显示弹出窗口

本文发布于:2023-11-28 00:15:54,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1640190.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:时间   应用程序   弹出窗口   数据库   系统

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!