You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.3 KiB
50 lines
1.3 KiB
12 months ago
|
using ScottPlot.Plottables;
|
||
|
using System;
|
||
12 months ago
|
using System.Collections.Generic;
|
||
12 months ago
|
using System.ComponentModel;
|
||
12 months ago
|
using System.Linq;
|
||
|
using System.Text;
|
||
|
using System.Threading.Tasks;
|
||
|
using System.Windows;
|
||
|
using System.Windows.Controls;
|
||
|
using System.Windows.Data;
|
||
|
using System.Windows.Documents;
|
||
|
using System.Windows.Input;
|
||
|
using System.Windows.Media;
|
||
12 months ago
|
using System.Windows.Media.Animation;
|
||
12 months ago
|
using System.Windows.Media.Imaging;
|
||
12 months ago
|
using System.Windows.Media.Media3D;
|
||
12 months ago
|
using System.Windows.Navigation;
|
||
|
using System.Windows.Shapes;
|
||
12 months ago
|
using System.Windows.Threading;
|
||
12 months ago
|
|
||
10 months ago
|
namespace SunlightCentralizedControlManagement_SCCM_.UserControls
|
||
12 months ago
|
{
|
||
|
/// <summary>
|
||
|
/// info.xaml 的交互逻辑
|
||
|
/// </summary>
|
||
|
public partial class info : UserControl
|
||
|
{
|
||
|
public info()
|
||
|
{
|
||
|
InitializeComponent();
|
||
12 months ago
|
CountDown();
|
||
12 months ago
|
}
|
||
12 months ago
|
|
||
|
private void CountDown()
|
||
|
{
|
||
|
DispatcherTimer timer1s = new DispatcherTimer//初始化循环,每1秒调用一次Tick
|
||
|
{
|
||
|
Interval = TimeSpan.FromSeconds(10)//秒
|
||
|
};
|
||
|
timer1s.Tick += Tick_Event_1S;
|
||
|
timer1s.Start();
|
||
|
}//时间周期初始化
|
||
|
void Tick_Event_1S(object sender, EventArgs e)//Tick_Event周期执行事件1S
|
||
|
{
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|
||
12 months ago
|
}
|