Esempio n. 1
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            string pageTitle = (sender as ToolStripItem).Text;

            if (!cJiaTabControl1.isExistPage(pageTitle))
            {
                UI.ScanView image = new UI.ScanView();
                cJiaTabControl1.ShowPage(pageTitle, image);
            }
        }
Esempio n. 2
0
        private void toolStripButton1_Click(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            string pageTitle = e.Item.Caption;

            if (!cJiaTabControl1.isExistPage(pageTitle))
            {
                string isScan = CJia.Health.Tools.ConfigHelper.GetAppStrings("isScanInSoftware");
                if (isScan == "1")//程序中调用扫描仪进行扫描
                {
                    UI.ScanView image = new UI.ScanView();
                    cJiaTabControl1.ShowPage(pageTitle, image);
                }
                else
                {
                    UI.JJCJScanView image2 = new UI.JJCJScanView();
                    cJiaTabControl1.ShowPage(pageTitle, image2);
                }
            }
        }