摘要:
// 获取网络时间方法 public static DateTime GetNetworkTime() { try { //default Windows time server //用域名获取时候用这里 //string ntpServer = "time.windows.com"; // NTP 阅读全文
posted @ 2024-03-24 08:15
edolf
阅读(723)
评论(0)
推荐(0)
摘要:
class Program { static void Main(string[] args) { bool isBreak = false; ConsoleColor colorBack = Console.BackgroundColor; ConsoleColor colorFore = Con 阅读全文
posted @ 2024-03-24 08:13
edolf
阅读(166)
评论(0)
推荐(0)
摘要:
// 新建一个cs文件,放在你的项目内,可以调用这个方法。 using System; using System.Diagnostics; // 调用程序 namespace Shutdown { class Proces { public static void Progress(string P 阅读全文
posted @ 2024-03-24 08:10
edolf
阅读(61)
评论(0)
推荐(0)
摘要:
// 该C#代码使用.net8 WinForm using System.Diagnostics; namespace OnlyOne { public partial class Form1 : Form { public Form1() { InitializeComponent(); } pr 阅读全文
posted @ 2024-03-24 08:03
edolf
阅读(237)
评论(0)
推荐(0)

浙公网安备 33010602011771号