- 积分
- 98
- 在线时间
- 168 小时
- 主题
- 2
- 注册时间
- 2013-6-8
- 帖子
- 90
- 最后登录
- 2024-9-14
- 帖子
- 90
- 软币
- 2324
- 在线时间
- 168 小时
- 注册时间
- 2013-6-8
|
发表于 2013-9-7 10:17:05
|
显示全部楼层
- curCtr.Dispose();
- ribbonStatusBar.Visible = false;
- if (ribbonControl.SelectedPage == ribbonPageCategory)
- {
- curCtr = new CT_Category();
- }
-
- if (ribbonControl.SelectedPage == ribbonPageProject)
- {
- curCtr = new CT_Project();
- }
- if (ribbonControl.SelectedPage == ribbonPageInFlow)
- {
- curCtr = new CT_InFlow();
- }
- if (ribbonControl.SelectedPage == ribbonPageOutFlow)
- {
- curCtr = new CT_OutFlow();
- }
- if (ribbonControl.SelectedPage == ribbonPageYearPlan)
- {
- curCtr = new CT_YearPlan();
- }
- if (ribbonControl.SelectedPage == printPreviewRibbonPage)
- {
- ribbonStatusBar.Visible = true;
- curCtr = new CT_Report();
- }
- curCtr.Dock = DockStyle.Fill;
- curCtr.Parent = paneMain;
复制代码 curCtr 就是用户控件。 |
|