using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using MetroFramework.Forms;
namespace UI框架练习
{
public partial class Form1 : MetroForm
{
public Form1()
{
InitializeComponent();
}
private void openform(Form frm)
{
frm.TopLevel = false;
this.panelmain.Controls.Clear();
this.panelmain.Controls.Add(frm);
frm.Show();
}
Form frm2 = new Form2();
Form frm3 = new Form3();
private void button1home_Click(object sender, EventArgs e)
{
openform(frm2);
//frm2.Visible = true;
}
private void button3set_Click(object sender, EventArgs e)
{
openform(frm3);
}
private void button2login_Click(object sender, EventArgs e)
{
}
}
}