日期:2014-05-17 浏览次数:20985 次
public MainForm()
{
InitializeComponent();
login log = new login();
log.Dock = DockStyle.Fill;
DisPanel();
this.WorkArea.Controls.Add(log);
}
private void DisPanel()
{
foreach (UserControl uc in this.WorkArea.Controls)
{
uc.Dispose();
}
}
public void nextpanel(string panelname)
{
switch (panelname)
{
case "login":
{
examselect exam = new examselect();
exam.Dock = DockStyle.Fill;
DisPanel();
this.WorkArea.Controls.Add(exam);
this.btnBack.Visible = true;
}; break;
default: break;
}
}
MainForm winform=new MainForm();
win