This repository has been archived on 2024-06-21. You can view files and clone it, but cannot push or open issues or pull requests.
2024-03-22 17:03:01 +08:00
|
|
|
|
using CDSAE3_Lian_Lian_Kan.Forms;
|
|
|
|
|
|
|
|
|
|
namespace CDSAE3_Lian_Lian_Kan
|
|
|
|
|
{
|
|
|
|
|
public partial class LianLianKan : Form
|
|
|
|
|
{
|
|
|
|
|
public LianLianKan()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
current_form = this;
|
|
|
|
|
change_form(new Leisure_Mode_MenuForm());
|
2024-04-02 21:57:04 +08:00
|
|
|
|
Etcs.form = this;
|
2024-03-22 17:03:01 +08:00
|
|
|
|
}
|
|
|
|
|
Form current_form;
|
|
|
|
|
public void change_form(Form form)
|
|
|
|
|
{
|
|
|
|
|
if (current_form == form)
|
|
|
|
|
return;
|
|
|
|
|
current_form = form;
|
|
|
|
|
MainPanel.Controls.Clear();
|
|
|
|
|
form.TopLevel = false;
|
|
|
|
|
form.Dock = DockStyle.Fill;
|
|
|
|
|
MainPanel.Controls.Add(form);
|
|
|
|
|
form.Show();
|
2024-04-02 21:57:04 +08:00
|
|
|
|
GC.Collect();
|
2024-03-22 17:03:01 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|