Exemple #1
0
        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();
        }
Exemple #2
0
        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();
        }