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.
66 lines
1.9 KiB
66 lines
1.9 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Configuration;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
using Microsoft.VisualBasic;
|
|
namespace ControlSystem
|
|
{
|
|
/// <summary>
|
|
/// Creator:Richard.liu
|
|
/// ºÚÏ»×Óά»¤
|
|
/// </summary>
|
|
public partial class FrmWaitTime : Form
|
|
{
|
|
private static FrmWaitTime _formInstance;
|
|
|
|
public static FrmWaitTime FormInstance
|
|
{
|
|
get
|
|
{
|
|
if (_formInstance == null)
|
|
{
|
|
_formInstance = new FrmWaitTime();
|
|
}
|
|
return _formInstance;
|
|
}
|
|
set { _formInstance = value; }
|
|
}
|
|
public FrmWaitTime()
|
|
{
|
|
InitializeComponent();
|
|
_formInstance = this;
|
|
}
|
|
|
|
private void button1_Click(object sender, EventArgs e)
|
|
{
|
|
try
|
|
{
|
|
if (Information.IsNumeric(this.tbWaitTime.Text.Trim()) == false)
|
|
{
|
|
MessageBox.Show("Ë«²æÈÎÎñµÄ×î´óµÈ´ýʱ¼ä±ØÐëΪÊý×Ö£¡", "²Ù×÷Ìáʾ£º", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
|
this.tbWaitTime.Focus();
|
|
return;
|
|
}
|
|
|
|
CommonClassLib.AppSettings.SetValue("DoubleForkWaitTime", this.tbWaitTime.Text);
|
|
CStaticClass.DoubleForkWaitTime = this.tbWaitTime.Text;
|
|
MessageBox.Show("±£´æ³É¹¦£¡", "²Ù×÷Ìáʾ£º", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
|
this.Close();
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
private void FrmDarkCasket_Load(object sender, EventArgs e)
|
|
{
|
|
//20100521
|
|
this.tbWaitTime.Text = CommonClassLib.AppSettings.GetValue("DoubleForkWaitTime");
|
|
}
|
|
}
|
|
}
|