Esempio n. 1
0
        protected void enlargePicture(string source, string subPath = @"\Photos\")
        {
            FormPicture largePic = new FormPicture();

            updatePhotoPreview(largePic.pictureRoad, source, subPath);
            largePic.Show();
        }
Esempio n. 2
0
 private void tool_TakeOut_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (User.CurrentPatient == null)
     {
         CommHelp.ShowWarning("请选择需要拍摄的患者");
     }
     else
     {
         var form = new FormPicture();
         if (form.ShowDialog() == DialogResult.OK)
         {
             LoadMdiForm(this, typeof(FormPatientEdit));
             if (form.imgList.Count > 0)
             {
                 foreach (var f in this.MdiChildren)
                 {
                     if (f.GetType() == typeof(FormPatientEdit))
                     {
                         ((FormPatientEdit)f).SaveImgToHistory(form.imgList);
                     }
                 }
             }
         }
     }
 }
Esempio n. 3
0
        private void btnPai_Click(object sender, EventArgs e)
        {
            var form = new FormPicture();

            if (form.ShowDialog() == DialogResult.OK)
            {
                AddImg(form.imgList);
                BindImg();
            }
        }
Esempio n. 4
0
        protected void enlargePicture(string source, string subPath, string[] listOfPhotos = null)
        {
            string      folderPath = Project.projectFolderPath + "\\" + subPath + "\\";
            FormPicture largePic   = new FormPicture(listOfPhotos, source, folderPath);

            if (!string.IsNullOrEmpty(source))
            {
                largePic.pictureBox.ImageLocation = folderPath + source;
            }
            else
            {
                largePic.pictureBox.Image = Properties.Resources.nophoto;
            }
            largePic.Show();
        }
Esempio n. 5
0
        private void printPreviewToolStripButton_Click(object sender, EventArgs e)
        {
            var form = new FormPicture();

            if (form.ShowDialog() == DialogResult.OK)
            {
                foreach (var img in form.imgList)
                {
                    if (img.InfoType == 0)
                    {
                        var imgForm = new FormImg(img);
                        imgForm.MdiParent = this;
                        imgForm.Show();
                    }
                }
                var conForm = FormEditControl.GetForm();
                conForm.MdiParent = MdiParent;
                conForm.Show();
            }
        }