📄 gy.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace bizdb
{
/// <summary>
/// gy 的摘要说明。
/// </summary>
public class gy : System.Windows.Forms.Form
{
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.PictureBox pcb_yltp;
private System.Windows.Forms.Label label1;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public gy()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.panel1 = new System.Windows.Forms.Panel();
this.button1 = new System.Windows.Forms.Button();
this.textBox1 = new System.Windows.Forms.TextBox();
this.pcb_yltp = new System.Windows.Forms.PictureBox();
this.label1 = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// panel1
//
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.panel1.Controls.Add(this.button1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel1.Location = new System.Drawing.Point(0, 261);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(360, 56);
this.panel1.TabIndex = 0;
//
// button1
//
this.button1.Location = new System.Drawing.Point(136, 16);
this.button1.Name = "button1";
this.button1.TabIndex = 0;
this.button1.Text = "关闭";
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// textBox1
//
this.textBox1.AcceptsReturn = true;
this.textBox1.AcceptsTab = true;
this.textBox1.BackColor = System.Drawing.SystemColors.ScrollBar;
this.textBox1.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.textBox1.ForeColor = System.Drawing.SystemColors.HotTrack;
this.textBox1.Location = new System.Drawing.Point(0, 168);
this.textBox1.Multiline = true;
this.textBox1.Name = "textBox1";
this.textBox1.ReadOnly = true;
this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.textBox1.Size = new System.Drawing.Size(360, 88);
this.textBox1.TabIndex = 2;
this.textBox1.Text = "";
//
// pcb_yltp
//
this.pcb_yltp.Location = new System.Drawing.Point(8, 8);
this.pcb_yltp.Name = "pcb_yltp";
this.pcb_yltp.Size = new System.Drawing.Size(144, 152);
this.pcb_yltp.TabIndex = 3;
this.pcb_yltp.TabStop = false;
//
// label1
//
this.label1.Location = new System.Drawing.Point(176, 48);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(176, 112);
this.label1.TabIndex = 4;
//
// gy
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(360, 317);
this.ControlBox = false;
this.Controls.Add(this.label1);
this.Controls.Add(this.pcb_yltp);
this.Controls.Add(this.panel1);
this.Controls.Add(this.textBox1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.Name = "gy";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "阜和教育课程体系课程库系统";
this.Load += new System.EventHandler(this.gy_Load);
this.panel1.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private void gy_Load(object sender, System.EventArgs e)
{
try
{
textBox1.Text = "开发公司\r\n" + "上海久豪信息技术有限公司" + "\r\n\r\n" +
"经理\r\n" + "张东光" + "\r\n\r\n" +
"项目主管\r\n" + "史文静" + "\r\n\r\n" +
"技术主管\r\n" + "王兴华" + "\r\n\r\n" +
"程序员\r\n" + "陶丰明 孟晓华 刘维斌 郭杰" + "\r\n\r\n" +
"数据库设计管理人员\r\n" + "俞琳琳" + "\r\n\r\n" +
"测试人员\r\n" + "许正长 陈林勇" + "\r\n\r\n" +
"业务需求人员\r\n" + "刘颖";
this.label1.Text = "联系电话:021-65444736\r\n\r\n" +
"传真:021-65444736\r\n\r\n" +
"邮箱:zhangdg@mail.edu.cn\r\n\r\n" +
"软件版本号:1.10";
Image img = Image.FromFile("logo.jpg");
this.pcb_yltp.Image = img.GetThumbnailImage(this.pcb_yltp.Width,this.pcb_yltp.Height,null,IntPtr.Zero);
}
catch
{}
}
private void button1_Click(object sender, System.EventArgs e)
{
this.Close();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -