📄 designframe.cs
字号:
#region Named Place
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.IO;
using System.Data;
using System.Data.SqlClient;
using WindowsApplication.BrushKaID;
#endregion
namespace WindowsApplication
{
public class DesignFrame : System.Windows.Forms.Form
{
#region Controls Collection
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Button btnOk;
private System.Windows.Forms.Button btnCancel;
private System.Windows.Forms.ComboBox textHour;
private System.Windows.Forms.ComboBox textMinutes;
private System.Windows.Forms.ComboBox textSecond;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Timer currentTime;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.Label label18;
private System.Windows.Forms.Label label19;
private System.Windows.Forms.GroupBox MorningGroup;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.ComboBox textMorningHour;
private System.Windows.Forms.ComboBox textMorningSecond;
private System.Windows.Forms.ComboBox textMorningMinute;
private System.Windows.Forms.ComboBox textAfternoonSecond;
private System.Windows.Forms.ComboBox textAfternoonMinute;
private System.Windows.Forms.ComboBox textAfternoonHour;
private System.Windows.Forms.ComboBox textAfternoonS;
private System.Windows.Forms.ComboBox textAfternoonM;
private System.Windows.Forms.ComboBox textAfternoonH;
private System.Windows.Forms.Label label;
private System.ComponentModel.IContainer components;
#endregion
#region Contruction Function
public DesignFrame()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#endregion
#region 定义变量...
public static string strHour="";
public static string strMinute="";
public static string strSecond="";
public static bool blEnable=false;
public static bool blRemeber=false;
public static string MstrH="";
public static string MstrM="";
public static string MstrS="";
public static string Ahour="";
public static string Asecond="";
public static string Aminute="";
private ConnectionData conn=new ConnectionData();
#endregion
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(DesignFrame));
this.label1 = new System.Windows.Forms.Label();
this.textHour = new System.Windows.Forms.ComboBox();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.textMinutes = new System.Windows.Forms.ComboBox();
this.label5 = new System.Windows.Forms.Label();
this.textSecond = new System.Windows.Forms.ComboBox();
this.btnOk = new System.Windows.Forms.Button();
this.btnCancel = new System.Windows.Forms.Button();
this.label6 = new System.Windows.Forms.Label();
this.currentTime = new System.Windows.Forms.Timer(this.components);
this.label7 = new System.Windows.Forms.Label();
this.textMorningSecond = new System.Windows.Forms.ComboBox();
this.label8 = new System.Windows.Forms.Label();
this.textMorningMinute = new System.Windows.Forms.ComboBox();
this.label9 = new System.Windows.Forms.Label();
this.textMorningHour = new System.Windows.Forms.ComboBox();
this.label10 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.textAfternoonSecond = new System.Windows.Forms.ComboBox();
this.label14 = new System.Windows.Forms.Label();
this.textAfternoonMinute = new System.Windows.Forms.ComboBox();
this.label15 = new System.Windows.Forms.Label();
this.textAfternoonHour = new System.Windows.Forms.ComboBox();
this.label16 = new System.Windows.Forms.Label();
this.label17 = new System.Windows.Forms.Label();
this.textAfternoonS = new System.Windows.Forms.ComboBox();
this.label18 = new System.Windows.Forms.Label();
this.textAfternoonM = new System.Windows.Forms.ComboBox();
this.label19 = new System.Windows.Forms.Label();
this.textAfternoonH = new System.Windows.Forms.ComboBox();
this.MorningGroup = new System.Windows.Forms.GroupBox();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.label = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// label1
//
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.label1.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(255)));
this.label1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.label1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.label1.ForeColor = System.Drawing.Color.White;
this.label1.Location = new System.Drawing.Point(0, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(368, 32);
this.label1.TabIndex = 0;
this.label1.Text = "考勤时间设置";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// textHour
//
this.textHour.DropDownStyle = System.Windows.Forms.ComboBoxStyle.Simple;
this.textHour.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.textHour.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(255)));
this.textHour.Items.AddRange(new object[] {
"00",
"01",
"02",
"03",
"04",
"05",
"06",
"07",
"08",
"09",
"10",
"11",
"12",
"13",
"14",
"15",
"16",
"17",
"18",
"19",
"20",
"21",
"22",
"23"});
this.textHour.Location = new System.Drawing.Point(96, 64);
this.textHour.Name = "textHour";
this.textHour.Size = new System.Drawing.Size(40, 20);
this.textHour.TabIndex = 2;
this.textHour.MouseEnter += new System.EventHandler(this.textSecond_MouseEnter);
this.textHour.MouseLeave += new System.EventHandler(this.textSecond_MouseLeave);
//
// label3
//
this.label3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.label3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.label3.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(255)));
this.label3.Location = new System.Drawing.Point(144, 64);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(16, 23);
this.label3.TabIndex = 3;
this.label3.Text = "时";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// label4
//
this.label4.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.label4.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.label4.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(255)));
this.label4.Location = new System.Drawing.Point(216, 64);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(16, 23);
this.label4.TabIndex = 5;
this.label4.Text = "分";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// textMinutes
//
this.textMinutes.DropDownStyle = System.Windows.Forms.ComboBoxStyle.Simple;
this.textMinutes.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.textMinutes.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(255)));
this.textMinutes.Items.AddRange(new object[] {
"00",
"01",
"02",
"03",
"04",
"05",
"06",
"07",
"08",
"09",
"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",
"43",
"44",
"45",
"46",
"47",
"48",
"49",
"50",
"51",
"52",
"53",
"54",
"55",
"56",
"57",
"58",
"59"});
this.textMinutes.Location = new System.Drawing.Point(168, 64);
this.textMinutes.Name = "textMinutes";
this.textMinutes.Size = new System.Drawing.Size(40, 20);
this.textMinutes.TabIndex = 4;
this.textMinutes.MouseEnter += new System.EventHandler(this.textSecond_MouseEnter);
this.textMinutes.MouseLeave += new System.EventHandler(this.textSecond_MouseLeave);
//
// label5
//
this.label5.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.label5.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.label5.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(255)));
this.label5.Location = new System.Drawing.Point(296, 64);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(16, 23);
this.label5.TabIndex = 7;
this.label5.Text = "秒";
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// textSecond
//
this.textSecond.DropDownStyle = System.Windows.Forms.ComboBoxStyle.Simple;
this.textSecond.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.textSecond.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(255)));
this.textSecond.Items.AddRange(new object[] {
"00",
"01",
"02",
"03",
"04",
"05",
"06",
"07",
"08",
"09",
"10",
"11",
"12",
"13",
"14",
"15",
"16",
"17",
"18",
"19",
"20",
"21",
"22",
"23",
"24",
"25",
"26",
"27",
"28",
"29",
"30",
"31",
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -