📄 traintimequery.cs
字号:
this.lbl7.Name = "lbl7";
this.lbl7.Size = new System.Drawing.Size(54, 12);
this.lbl7.TabIndex = 25;
this.lbl7.Click += new System.EventHandler(this.lbl7_Click);
//
// lbl6
//
this.lbl6.BackColor = System.Drawing.Color.Transparent;
this.lbl6.Location = new System.Drawing.Point(324, 176);
this.lbl6.Name = "lbl6";
this.lbl6.Size = new System.Drawing.Size(54, 12);
this.lbl6.TabIndex = 24;
this.lbl6.Click += new System.EventHandler(this.lbl6_Click);
//
// lbl5
//
this.lbl5.BackColor = System.Drawing.Color.Transparent;
this.lbl5.Location = new System.Drawing.Point(250, 176);
this.lbl5.Name = "lbl5";
this.lbl5.Size = new System.Drawing.Size(54, 12);
this.lbl5.TabIndex = 23;
this.lbl5.Click += new System.EventHandler(this.lbl5_Click);
//
// lbl4
//
this.lbl4.BackColor = System.Drawing.Color.Transparent;
this.lbl4.Location = new System.Drawing.Point(178, 174);
this.lbl4.Name = "lbl4";
this.lbl4.Size = new System.Drawing.Size(54, 12);
this.lbl4.TabIndex = 22;
this.lbl4.Click += new System.EventHandler(this.lbl4_Click);
//
// lbl3
//
this.lbl3.BackColor = System.Drawing.Color.Transparent;
this.lbl3.Location = new System.Drawing.Point(324, 130);
this.lbl3.Name = "lbl3";
this.lbl3.Size = new System.Drawing.Size(54, 12);
this.lbl3.TabIndex = 21;
this.lbl3.Click += new System.EventHandler(this.lbl3_Click);
//
// lbl2
//
this.lbl2.BackColor = System.Drawing.Color.Transparent;
this.lbl2.Location = new System.Drawing.Point(250, 130);
this.lbl2.Name = "lbl2";
this.lbl2.Size = new System.Drawing.Size(54, 12);
this.lbl2.TabIndex = 20;
this.lbl2.Click += new System.EventHandler(this.lbl2_Click);
//
// lbl1
//
this.lbl1.BackColor = System.Drawing.Color.Transparent;
this.lbl1.Location = new System.Drawing.Point(178, 128);
this.lbl1.Name = "lbl1";
this.lbl1.Size = new System.Drawing.Size(54, 12);
this.lbl1.TabIndex = 2;
this.lbl1.Click += new System.EventHandler(this.lbl1_Click);
//
// txtCheci
//
this.txtCheci.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(153)), ((System.Byte)(243)));
this.txtCheci.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.txtCheci.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(0)), ((System.Byte)(0)));
this.txtCheci.Location = new System.Drawing.Point(28, 94);
this.txtCheci.Multiline = true;
this.txtCheci.Name = "txtCheci";
this.txtCheci.Size = new System.Drawing.Size(88, 16);
this.txtCheci.TabIndex = 1;
this.txtCheci.Text = "";
//
// lblclear
//
this.lblclear.BackColor = System.Drawing.Color.Transparent;
this.lblclear.Cursor = System.Windows.Forms.Cursors.Hand;
this.lblclear.Location = new System.Drawing.Point(126, 96);
this.lblclear.Name = "lblclear";
this.lblclear.Size = new System.Drawing.Size(14, 14);
this.lblclear.TabIndex = 0;
this.toolTip1.SetToolTip(this.lblclear, "清空所选车次");
this.lblclear.Click += new System.EventHandler(this.lblclear_Click);
//
// TrainTimeQuery
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(408, 435);
this.Controls.Add(this.panel1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "TrainTimeQuery";
this.Text = "查询车次";
this.panel1.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
//窗口关闭事件
private void lblclose_Click(object sender, System.EventArgs e)
{
this.Close();
}
//清空按钮事件
private void lblclear_Click(object sender, System.EventArgs e)
{
this.txtCheci.Text="";
}
private void lbl1_Click(object sender, System.EventArgs e)
{
this.txtCheci.Text+="1";
}
private void lbl2_Click(object sender, System.EventArgs e)
{
this.txtCheci.Text+="2";
}
private void lbl3_Click(object sender, System.EventArgs e)
{
this.txtCheci.Text+="3";
}
private void lbl4_Click(object sender, System.EventArgs e)
{
this.txtCheci.Text+="4";
}
private void lbl5_Click(object sender, System.EventArgs e)
{
this.txtCheci.Text+="5";
}
private void lbl6_Click(object sender, System.EventArgs e)
{
this.txtCheci.Text+="6";
}
private void lbl7_Click(object sender, System.EventArgs e)
{
this.txtCheci.Text+="7";
}
private void lbl8_Click(object sender, System.EventArgs e)
{
this.txtCheci.Text+="8";
}
private void lbl9_Click(object sender, System.EventArgs e)
{
this.txtCheci.Text+="9";
}
private void lbl0_Click(object sender, System.EventArgs e)
{
this.txtCheci.Text+="0";
}
//快速(K)
private void lblkuai_Click(object sender, System.EventArgs e)
{
this.txtCheci.Text="K";
}
//特快
private void lblte_Click(object sender, System.EventArgs e)
{
this.txtCheci.Text="T";
}
//直特
private void lblzhi_Click(object sender, System.EventArgs e)
{
this.txtCheci.Text="Z";
}
//快速(N)
private void lblkuai2_Click(object sender, System.EventArgs e)
{
this.txtCheci.Text="N";
}
//临时
private void lbllin_Click(object sender, System.EventArgs e)
{
this.txtCheci.Text="L";
}
//放弃
private void lbldrop_Click(object sender, System.EventArgs e)
{
this.Close();
}
//确定
private void lblOK_Click(object sender, System.EventArgs e)
{
if( txtCheci.Text == null || txtCheci.Text.Trim() == "" )
{
MessageBox.Show(this,"请输入需要查询的车次编号!");
return;
}
else
{
((MainView)this.Owner).txtCheci.Text = this.txtCheci.Text;
this.Close();
}
}
//动车
private void lbldong_Click(object sender, System.EventArgs e)
{
this.txtCheci.Text="D";
}
//最小化
private void lblmin_Click(object sender, System.EventArgs e)
{
this.WindowState= FormWindowState.Minimized;
}
//鼠标按下的事件
private void panel1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
if(isclick)
{
isclick=false;
}
else
{
isclick=true;
oldpoint.X=e.X;
oldpoint.Y=e.Y;
}
}
//鼠标移动的事件
private void panel1_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
{
if(isclick)
{
Point newpoint=new Point(this.Location.X,this.Location.Y);
newpoint.X=this.Location.X+e.X-oldpoint.X;
newpoint.Y=this.Location.Y+e.Y-oldpoint.Y;
this.Location=newpoint;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -