public Information() { InitializeComponent(); mr = new MyResize(this); this.AutoScroll = true; //this.FormBorderStyle = FormBorderStyle.None; this.Text = "员工信息查询"; this.SizeChanged += Information_SizeChanged; this.E_ID.TextChanged += EmployeeTextChange_Click; this.query.Click += Query_Click; pageDown.Click += PageDown_Click; pageUp.Click += PageUp_Click; TabelHead(); TabelLabel(tableLabel1); TabelLabel(tableLabel2); //SelectTableData(); string sqlSelectStr = "select ID from department"; LoadData(sqlSelectStr, D_NameID); sqlSelectStr = "select name from department"; LoadData(sqlSelectStr, D_NameID); sqlSelectStr = "select ID from employee"; LoadData(sqlSelectStr, E_ID); sqlSelectStr = "select name from employee"; LoadData(sqlSelectStr, E_Name); sqlSelectStr = "select ID from post"; LoadData(sqlSelectStr, P_NameID); sqlSelectStr = "select name from post"; LoadData(sqlSelectStr, P_NameID); }
public void FrmAdmin() { this.Size = new Size(1366, 768); this.CenterToScreen(); this.Text = "后台管理系统"; this.ShowIcon = false; this.Load += BaseTool_Click; //this.MaximizeBox = false; this.FormBorderStyle = FormBorderStyle.FixedSingle; mr = new MyResize(this); try { this.SizeChanged += FrmMaxChange_Click; } catch { TitelFont(logo); } }