예제 #1
0
 private void iHome_ItemClick(object sender, ItemClickEventArgs e)
 {
     UserControls.MainForm mainForm = new UserControls.MainForm();
     tabContent.Controls.Clear();
     mainForm.Dock = DockStyle.Fill;
     tabContent.Controls.Add(mainForm);
 }
예제 #2
0
        //private void barButtonItem1_ItemClick(object sender, ItemClickEventArgs e)
        //{
        //    UserControls.ucServices ucService = new UserControls.ucServices();
        //    tabContent.Controls.Clear();
        //    ucService.Dock = DockStyle.Fill;
        //    tabContent.Controls.Add(ucService);
        //}

        //private void barButtonItem3_ItemClick(object sender, ItemClickEventArgs e)
        //{
        //    UserControls.ucRent ucRent = new UserControls.ucRent();
        //    tabContent.Controls.Clear();
        //    ucRent.Dock = DockStyle.Fill;
        //    tabContent.Controls.Add(ucRent);
        //}

        private void Form1_Load(object sender, EventArgs e)
        {
            UserControls.MainForm mainForm = new UserControls.MainForm();
            tabContent.Controls.Clear();
            mainForm.Dock = DockStyle.Fill;
            tabContent.Controls.Add(mainForm);
        }