发布时间 : 星期三 文章软件测试--学生管理系统-张小蒙 - 图文更新完毕开始阅读fcb90408c1c708a1294a44bb
}
//点击查看个人信息 if
(((System.Windows.Forms.TreeView)sender).SelectedNode.Text.Equals(\查看信息\
{
SelMessage s = new SelMessage(name);
s.FormBorderStyle = FormBorderStyle.None; s.Dock = DockStyle.Fill; s.TopLevel = false;
this.splitContainer1.Panel2.Controls.Clear(); this.splitContainer1.Panel2.Controls.Add(s); s.Show();
}
//点击修改个人信息 if
(((System.Windows.Forms.TreeView)sender).SelectedNode.Text.Equals(\修改信息\
{
AlterM Al = new AlterM(name);
Al.FormBorderStyle = FormBorderStyle.None; Al.Dock = DockStyle.Fill; Al.TopLevel = false;
this.splitContainer1.Panel2.Controls.Clear(); this.splitContainer1.Panel2.Controls.Add(Al); Al.Show();
}
//点击修改密码 if
(((System.Windows.Forms.TreeView)sender).SelectedNode.Text.Equals(\修改密码\
{
AlterPassword AP = new AlterPassword(name); AP.FormBorderStyle = FormBorderStyle.None; AP.Dock = DockStyle.Fill; AP.TopLevel = false;
this.splitContainer1.Panel2.Controls.Clear(); this.splitContainer1.Panel2.Controls.Add(AP); AP.Show();
35 / 42
}
//点击退出登录 if
(((System.Windows.Forms.TreeView)sender).SelectedNode.Text.Equals(\退出登录\
{
if (MessageBox.Show(\是否要退出本系统?\提示\MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes) {
Login log = new Login(); log.Show(); this.Hide();
} }
} }
private void App_Click(object sender, EventArgs e) {
App.Desk D = new App.Desk(); D.Show(); }
private void timer1_Tick(object sender, EventArgs e) {
label4.Text = DateTime.Now.ToString(); } } }
36 / 42