Exemplo n.º 1
0
        private void btnBorrowTime_Click(object sender, EventArgs e)
        {
            string pageTitle = (sender as ToolStripItem).Text;//获得tabpage名称

            if (!cJiaTabControl1.isExistPage(pageTitle))
            {
                UI.BorrowTimeLenthView borrow = new UI.BorrowTimeLenthView();
                cJiaTabControl1.ShowPage(pageTitle, borrow);
            }
        }
Exemplo n.º 2
0
        private void btnBorrowTime_Click(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            string pageTitle = e.Item.Caption;//获得tabpage名称

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