Пример #1
0
        private void barUser_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            FrmUser frmtg = new FrmUser();

            frmtg.TopLevel = false;
            frmtg.Dock     = DockStyle.Fill;
            panelMain.Controls.Clear();
            panelMain.Controls.Add(frmtg);
            frmtg.Show();
        }
Пример #2
0
        private void barButtonItem5_ItemClick(object sender, ItemClickEventArgs e)
        {
            FrmUser frmtg = new FrmUser();

            frmtg.TopLevel = false;
            frmtg.Dock     = DockStyle.Fill;
            panelMain.Controls.Clear();
            panelMain.Controls.Add(frmtg);
            frmtg.Show();
        }