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 { } }
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(); } }