Files
1440WGJ/JY.Inspection/HomeFormExtend.cs
T

30 lines
644 B
C#
Raw Normal View History

2026-07-21 19:37:29 +08:00
using JY.Model;
using JY.Model.Common;
using NPOI.SS.Formula.Functions;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
namespace JY.Inspection
{
public partial class HomeForm
{
#region 定时任务
TaskScheduler scheduler = null;
private void InitTaskScheduler()
{
if (scheduler == null)
{
scheduler = new TaskScheduler();
}
scheduler.AddTask(state => {
Debug.WriteLine("Hello");
}, interval: 1000 * 60);
}
#endregion
}
}