private void button2_Click(object sender, EventArgs e) { ThayThe list = new ThayThe(); panelMain.Controls.Clear(); list.Dock = DockStyle.Fill; panelMain.Controls.Add(list); list.Show(); }
private void barButtonItem2_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { ThayThe list = new ThayThe(); panelMain.Controls.Clear(); list.Dock = DockStyle.Fill; panelMain.Controls.Add(list); list.Show(); }