예제 #1
0
        private void MenuStdPaper_Click(object sender, EventArgs e)
        {
            try
            {
                DataRow row = gridView1.GetDataRow(0);
                if (row != null)
                {
                    string StdPaperURL = Convert.ToString(row["jp_stdpaper"]);
                    string ProductName = Convert.ToString(row["jp_name"]);

                    if (StdPaperURL.Equals("no image") || StdPaperURL.Length.Equals(0))
                    {
                        MessageBox.Show("해당 제품의 작업표준서가 존재하지 않습니다.");
                    }
                    else
                    {
                        frm_imageContainer imgContainer;
                        Screen             sc = Screen.PrimaryScreen;
                        int    width          = sc.WorkingArea.Width;
                        int    height         = sc.WorkingArea.Height;
                        string title          = ProductName + " 작업표준서";
                        imgContainer = new frm_imageContainer(width, height, StdPaperURL, title);

                        imgContainer.Show();
                    }
                }
                else
                {
                    TileMenu_Leave();
                }
            }
            catch { }
        }
예제 #2
0
        private void pic_stdPaper_DoubleClick(object sender, EventArgs e)
        {
            if (((PictureEdit)sender).Image == null)
            {
                MessageBox.Show("사진이 존재하지 않습니다.", "에러");
            }
            else
            {
                frm_imageContainer imgContainer;
                int width  = ((PictureEdit)sender).Image.Width;
                int height = ((PictureEdit)sender).Image.Height;

                string stdPaperURL = Convert.ToString(pic_stdPaper.Tag);
                string description = txt_jpName.Text + " 작업표준서";
                imgContainer = new frm_imageContainer(width, height, stdPaperURL, description);

                imgContainer.Show();
            }
        }
예제 #3
0
        private void pic_profile_DoubleClick(object sender, EventArgs e)
        {
            if (pic_profile.Image == null)
            {
                MessageBox.Show("사진이 존재하지 않습니다.", "에러");
            }
            else
            {
                frm_imageContainer imgContainer;
                int width  = pic_profile.Image.Width;
                int height = pic_profile.Image.Height;

                if (imgLocalPath != "")
                {
                    imgContainer = new frm_imageContainer(width, height, imgLocalPath, txt_kor.Text);
                }
                else
                {
                    imgContainer = new frm_imageContainer(width, height, downloadedImgPath, txt_kor.Text);
                }

                imgContainer.ShowDialog();
            }
        }
예제 #4
0
        private void img_DoubleClick(object sender, EventArgs e)
        {
            if (((PictureEdit)sender).Image == null)
            {
                MessageBox.Show("사진이 존재하지 않습니다.", "에러");
            }
            else
            {
                frm_imageContainer imgContainer;
                int width  = ((PictureEdit)sender).Image.Width;
                int height = ((PictureEdit)sender).Image.Height;

                string name              = ((PictureEdit)sender).Name;
                string imgLocalPath      = "";
                string downloadedImgPath = "";
                string description       = "";

                switch (name)
                {
                case "pic_img1":
                    imgLocalPath      = img1.imgLocalPath;
                    downloadedImgPath = img1.downloadedImgPath;
                    description       = "제품사진(1)";
                    break;

                case "pic_img2":
                    imgLocalPath      = img2.imgLocalPath;
                    downloadedImgPath = img2.downloadedImgPath;
                    description       = "제품사진(2)";
                    break;

                case "pic_img3":
                    imgLocalPath      = img3.imgLocalPath;
                    downloadedImgPath = img3.downloadedImgPath;
                    description       = "제품사진(3)";
                    break;

                case "pic_img4":
                    imgLocalPath      = img4.imgLocalPath;
                    downloadedImgPath = img4.downloadedImgPath;
                    description       = "제품사진(4)";
                    break;

                case "pic_std":
                    imgLocalPath      = imgStd.imgLocalPath;
                    downloadedImgPath = imgStd.downloadedImgPath;
                    description       = txt_name.Text + " 작업표준서";
                    break;
                }
                if (imgLocalPath != "")
                {
                    imgContainer = new frm_imageContainer(width, height, imgLocalPath, description);
                }
                else
                {
                    imgContainer = new frm_imageContainer(width, height, downloadedImgPath, description);
                }

                imgContainer.ShowDialog();
            }
        }