📄 designframe.cs
字号:
"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.textAfternoonM.Location = new System.Drawing.Point(168, 208);
this.textAfternoonM.Name = "textAfternoonM";
this.textAfternoonM.Size = new System.Drawing.Size(40, 20);
this.textAfternoonM.TabIndex = 28;
this.textAfternoonM.MouseEnter += new System.EventHandler(this.textMorningMinute_MouseEnter);
this.textAfternoonM.MouseLeave += new System.EventHandler(this.textMorningMinute_MouseLeave);
//
// label19
//
this.label19.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.label19.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.label19.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(255)));
this.label19.Location = new System.Drawing.Point(144, 208);
this.label19.Name = "label19";
this.label19.Size = new System.Drawing.Size(16, 23);
this.label19.TabIndex = 27;
this.label19.Text = "时";
this.label19.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// textAfternoonH
//
this.textAfternoonH.DropDownStyle = System.Windows.Forms.ComboBoxStyle.Simple;
this.textAfternoonH.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.textAfternoonH.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(255)));
this.textAfternoonH.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.textAfternoonH.Location = new System.Drawing.Point(96, 208);
this.textAfternoonH.Name = "textAfternoonH";
this.textAfternoonH.Size = new System.Drawing.Size(40, 20);
this.textAfternoonH.TabIndex = 26;
this.textAfternoonH.MouseEnter += new System.EventHandler(this.textMorningMinute_MouseEnter);
this.textAfternoonH.MouseLeave += new System.EventHandler(this.textMorningMinute_MouseLeave);
//
// MorningGroup
//
this.MorningGroup.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(255)));
this.MorningGroup.Location = new System.Drawing.Point(8, 40);
this.MorningGroup.Name = "MorningGroup";
this.MorningGroup.Size = new System.Drawing.Size(344, 104);
this.MorningGroup.TabIndex = 33;
this.MorningGroup.TabStop = false;
this.MorningGroup.Text = "上午";
//
// groupBox1
//
this.groupBox1.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(255)));
this.groupBox1.Location = new System.Drawing.Point(8, 152);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(344, 88);
this.groupBox1.TabIndex = 34;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "下午";
//
// label
//
this.label.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.label.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(128)), ((System.Byte)(255)));
this.label.Location = new System.Drawing.Point(8, 248);
this.label.Name = "label";
this.label.Size = new System.Drawing.Size(344, 23);
this.label.TabIndex = 35;
this.label.Text = "提前1---10分钟下班者为早退现象";
this.label.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// DesignFrame
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.BackColor = System.Drawing.SystemColors.ActiveCaptionText;
this.CancelButton = this.btnCancel;
this.ClientSize = new System.Drawing.Size(362, 311);
this.Controls.Add(this.label);
this.Controls.Add(this.label16);
this.Controls.Add(this.label17);
this.Controls.Add(this.textAfternoonS);
this.Controls.Add(this.label18);
this.Controls.Add(this.textAfternoonM);
this.Controls.Add(this.label19);
this.Controls.Add(this.textAfternoonH);
this.Controls.Add(this.label12);
this.Controls.Add(this.label13);
this.Controls.Add(this.textAfternoonSecond);
this.Controls.Add(this.label14);
this.Controls.Add(this.textAfternoonMinute);
this.Controls.Add(this.label15);
this.Controls.Add(this.textAfternoonHour);
this.Controls.Add(this.label11);
this.Controls.Add(this.label10);
this.Controls.Add(this.label7);
this.Controls.Add(this.textMorningSecond);
this.Controls.Add(this.label8);
this.Controls.Add(this.textMorningMinute);
this.Controls.Add(this.label9);
this.Controls.Add(this.textMorningHour);
this.Controls.Add(this.btnCancel);
this.Controls.Add(this.btnOk);
this.Controls.Add(this.label5);
this.Controls.Add(this.textSecond);
this.Controls.Add(this.label4);
this.Controls.Add(this.textMinutes);
this.Controls.Add(this.label3);
this.Controls.Add(this.textHour);
this.Controls.Add(this.label1);
this.Controls.Add(this.label6);
this.Controls.Add(this.MorningGroup);
this.Controls.Add(this.groupBox1);
this.Cursor = System.Windows.Forms.Cursors.Hand;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "DesignFrame";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "DesignFrame";
this.Load += new System.EventHandler(this.DesignFrame_Load);
this.ResumeLayout(false);
}
#endregion
#region Init Event
private void DesignFrame_Load(object sender, System.EventArgs e)
{
#region 初始化变量...
// int hour=System.DateTime.Now.Hour;
// int minute=System.DateTime.Now.Minute;
// int second=System.DateTime.Now.Second;
#endregion
#region 初始化三个ComboBox控件的值...
if(DesignFrame.blRemeber.Equals(false))
{
#region 时间设置...
// if(hour<10)
// {
// if(minute>=10 && second<10)
// {
// this.textMinutes.Text=minute.ToString();
// this.textSecond.Text="0"+second.ToString();
// this.textHour.Text=hour.ToString();
// #region 时初始化...
// this.textAfternoonH.Text=hour.ToString();
// this.textAfternoonHour.Text=hour.ToString();
// this.textMorningHour.Text=hour.ToString();
// #endregion
// #region 分初始化...
// this.textAfternoonM.Text=minute.ToString();
// this.textAfternoonMinute.Text=minute.ToString();
// this.textMorningMinute.Text=minute.ToString();
// #endregion
// #region 秒初始化...
// this.textMorningSecond.Text="0"+second.ToString();
// this.textAfternoonSecond.Text="0"+second.ToString();
// this.textAfternoonS.Text="0"+second.ToString();
// #endregion
// return;
// }
// else if(minute<10 && second>=10)
// {
// this.textMinutes.Text="0"+minute.ToString();
// this.textSecond.Text=second.ToString();
// this.textHour.Text=hour.ToString();
// #region 时初始化...
// this.textAfternoonH.Text=hour.ToString();
// this.textAfternoonHour.Text=hour.ToString();
// this.textMorningHour.Text=hour.ToString();
// #endregion
// #region 分初始化...
// this.textAfternoonM.Text="0"+minute.ToString();
// this.textAfternoonMinute.Text="0"+minute.ToString();
// this.textMorningMinute.Text="0"+minute.ToString();
// #endregion
// #region 秒初始化...
// this.textMorningSecond.Text=second.ToString();
// this.textAfternoonSecond.Text=second.ToString();
// this.textAfternoonS.Text=second.ToString();
// #endregion
// return;
// }
// else if(minute<10 && second<10)
// {
// this.textMinutes.Text="0"+minute.ToString();
// this.textSecond.Text="0"+second.ToString();
// this.textHour.Text=hour.ToString();
// #region 时初始化...
// this.textAfternoonH.Text=hour.ToString();
// this.textAfternoonHour.Text=hour.ToString();
// this.textMorningHour.Text=hour.ToString();
// #endregion
// #region 分初始化...
// this.textAfternoonM.Text="0"+minute.ToString();
// this.textAfternoonMinute.Text="0"+minute.ToString();
// this.textMorningMinute.Text="0"+minute.ToString();
// #endregion
// #region 秒初始化...
// this.textMorningSecond.Text="0"+second.ToString();
// this.textAfternoonSecond.Text="0"+second.ToString();
// this.textAfternoonS.Text="0"+second.ToString();
// #endregion
// return;
// }
// else if(minute>=10 && second>=10)
// {
// this.textMinutes.Text=minute.ToString();
// this.textSecond.Text=second.ToString();
// this.textHour.Text=hour.ToString();
// #region 时初始化...
// this.textAfternoonH.Text=hour.ToString();
// this.textAfternoonHour.Text=hour.ToString();
// this.textMorningHour.Text=hour.ToString();
// #endregion
// #region 分初始化...
// this.textAfternoonM.Text=minute.ToString();
// this.textAfternoonMinute.Text=minute.ToString();
// this.textMorningMinute.Text=minute.ToString();
// #endregion
// #region 秒初始化...
// this.textMorningSecond.Text=second.ToString();
// this.textAfternoonSecond.Text=second.ToString();
// this.textAfternoonS.Text=second.ToString();
// #endregion
//
// return;
// }
// }
// else if(hour>=10)
// {
// if(minute>=10 && second<10)
// {
// this.textMinutes.Text=minute.ToString();
// this.textSecond.Text="0"+second.ToString();
// this.textHour.Text=hour.ToString();
// #region 时初始化...
// this.textAfternoonH.Text=hour.ToString();
// this.textAfternoonHour.Text=hour.ToString();
// this.textMorningHour.Text=hour.ToString();
// #endregion
// #region 分初始化...
// this.textAfternoonM.Text=minute.ToString();
// this.textAfternoonMinute.Text=minute.ToString();
// this.textMorningMinute.Text=minute.ToString();
// #endregion
// #region 秒初始化...
// this.textMorningSecond.Text="0"+second.ToString();
// this.textAfternoonSecond.Text="0"+second.ToString();
// this.textAfternoonS.Text="0"+second.ToString();
// #endregion
// return;
// }
// else if(minute<10 && second>=10)
// {
// this.textMinutes.Text="0"+minute.ToString();
// this.textSecond.Text=second.ToString();
// this.textHour.Text=hour.ToString();
// #region 时初始化...
// this.textAfternoonH.Text=hour.ToString();
// this.textAfternoonHour.Text=hour.ToString();
// this.textMorningHour.Text=hour.ToString();
// #endregion
// #region 分初始化...
// this.textAfternoonM.Text="0"+minute.ToString();
// this.textAfternoonMinute.Text="0"+minute.ToString();
// this.textMorningMinute.Text="0"+minute.ToString();
// #endregion
// #region 秒初始化...
// this.textMorningSecond.Text=second.ToString();
// this.textAfternoonSecond.Text=second.ToString();
// this.textAfternoonS.Text=second.ToString();
// #endregion
// return;
// }
// else if(minute<10 && second<10)
// {
// this.textMinutes.Text="0"+minute.ToString();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -