Exemple #1
0
        private void btnImagesInput_Click(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            string pageTitle = e.Item.Caption;

            if (!cJiaTabControl1.isExistPage(pageTitle))
            {
                string isAUTO = CJia.Health.Tools.ConfigHelper.GetAppStrings("AUTO");
                string isGZ   = CJia.Health.Tools.ConfigHelper.GetAppStrings("isGZ");
                if (isAUTO == "0")
                {
                    UI.NewPictureInputView image = new UI.NewPictureInputView();
                    cJiaTabControl1.ShowPage(pageTitle, image);
                }
                else
                {
                    if (isGZ == "1")
                    {
                        UI.PhotoNewView image = new UI.PhotoNewView();
                        cJiaTabControl1.ShowPage(pageTitle, image);
                    }
                    else
                    {
                        UI.PhotoView image = new UI.PhotoView();
                        cJiaTabControl1.ShowPage(pageTitle, image);
                    }
                }
            }
        }
Exemple #2
0
        private void btnImagesInput_Click(object sender, EventArgs e)
        {
            string pageTitle = (sender as ToolStripItem).Text;

            if (!cJiaTabControl1.isExistPage(pageTitle))
            {
                string isAUTO = CJia.Health.Tools.ConfigHelper.GetAppStrings("AUTO");
                if (isAUTO == "0")
                {
                    UI.NewPictureInputView image = new UI.NewPictureInputView();
                    cJiaTabControl1.ShowPage(pageTitle, image);
                }
                else
                {
                    UI.PhotoView image = new UI.PhotoView();
                    cJiaTabControl1.ShowPage(pageTitle, image);
                }
            }
        }