forked from ispysoftware/iSpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ConfigureRepeat.cs
42 lines (35 loc) · 1.04 KB
/
ConfigureRepeat.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
using System.Windows.Forms;
namespace iSpyApplication
{
public partial class ConfigureRepeat : Form
{
public int Interval = 10;
public DateTime Until = Helper.Now;
public ConfigureRepeat()
{
InitializeComponent();
RenderResources();
}
private void RenderResources()
{
label48.Text = LocRm.GetString("Seconds");
button1.Text = LocRm.GetString("OK");
label1.Text = LocRm.GetString("Every");
label2.Text = LocRm.GetString("Until");
Text = LocRm.GetString("Repeat");
}
private void ForSecondsLoad(object sender, EventArgs e)
{
txtSeconds.Value = Interval;
dtpSchedulePTZ.Value = Until;
}
private void Button1Click(object sender, EventArgs e)
{
Interval = Convert.ToInt32(txtSeconds.Value);
Until = dtpSchedulePTZ.Value;
DialogResult = DialogResult.OK;
Close();
}
}
}