示例#1
0
文件: MainForm.cs 项目: whuacn/CJia
        private void btnProject_Click(object sender, EventArgs e)
        {
            string pageTitle = (sender as ToolStripMenuItem).Text;

            if (!cJiaTabControl1.isExistPage(pageTitle))
            {
                UI.ProjectManageView project = new UI.ProjectManageView();
                cJiaTabControl1.ShowPage(pageTitle, project);
            }
        }
示例#2
0
        private void btnProject_Click(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            string pageTitle = e.Item.Caption;

            if (!cJiaTabControl1.isExistPage(pageTitle))
            {
                UI.ProjectManageView project = new UI.ProjectManageView();
                cJiaTabControl1.ShowPage(pageTitle, project);
            }
        }