//--------------------------------------------------------------------- public void TSDataToComb() { if (tsd != null) { for (int i = 0; i < (int)SheetInfo.Count; i++) { if (cmbTbl[i] != null) { cmbTbl[i].Text = tsd.GetInfo((SheetInfo)i); } if (cbTbl[i] != null) { cbTbl[i].Checked = tsd.GetIsPtintInfo((SheetInfo)i); } } } }
//****************************************************** public void DrawWaku(Graphics g) { Pen p = new Pen(Color.Black); SolidBrush b = new SolidBrush(Color.Black); //g.PageUnit = GraphicsUnit.Millimeter; try { float x0; float x1; float y0; float y1; //上の左の周囲 p.Width = _pSizeL; x0 = m_mX + _CapLeftL; y0 = m_mY + _CapTop; g.DrawRectangle(p, x0, y0, _CapWidthL, _CapHeight); //上の左。横線 p.Width = _pSizeM; x0 = m_mX + _CapLeftOpus; y0 = m_mY + _CapTopB; x1 = x0 + _CapWidthL; g.DrawLine(p, x0, y0, x1, y0); //上の左。縦線 x0 = m_mX + _CapLeftSubTitle; y0 = m_mY + _CapTop; y1 = m_mY + _CapTop + _CapHeight; g.DrawLine(p, x0, y0, x0, y1); x0 = m_mX + _CapLeftScecne; g.DrawLine(p, x0, y0, x0, y1); x0 = m_mX + _CapLeftCut; g.DrawLine(p, x0, y0, x0, y1); x0 = m_mX + _CapLeftSec; g.DrawLine(p, x0, y0, x0, y1); //上の右の周囲 p.Width = _pSizeLL; x0 = m_mX + _CapLeftR; y0 = m_mY + _CapTop; g.DrawRectangle(p, x0, y0, _CapWidthR, _CapHeight); p.Width = _pSizeM; x0 = m_mX + _CapLeftR; y0 = m_mY + _CapTopB; x1 = x0 + _CapWidthR; g.DrawLine(p, x0, y0, x1, y0); //コメントの周囲 p.Width = _pSizeS; x0 = m_mX + _CommentLeft; y0 = m_mY + _CommentTop; g.DrawRectangle(p, x0, y0, _CommentWidth, _CommentHeight); //--------------------------------- //その他の描画 RectangleF rct = new RectangleF(_CapLeftOpus + m_mX, _CapTop + m_mY, _CapWidthOpus, _CapHeightT); SetFontSize(1.0f); format.Alignment = StringAlignment.Center; format.LineAlignment = StringAlignment.Center; g.DrawString(sOPUS, m_Font, b, rct, format); rct = new RectangleF(_CapLeftSubTitle + m_mX, _CapTop + m_mY, _CapWidthSubTitle, _CapHeightT); g.DrawString(sSubTitle, m_Font, b, rct, format); rct = new RectangleF(_CapLeftScecne + m_mX, _CapTop + m_mY, _CapWidthScecne, _CapHeightT); g.DrawString(sSecne, m_Font, b, rct, format); rct = new RectangleF(_CapLeftCut + m_mX, _CapTop + m_mY, _CapWidthCut, _CapHeightT); g.DrawString(sCut, m_Font, b, rct, format); rct = new RectangleF(_CapLeftSec + m_mX, _CapTop + m_mY, _CapWidthSec, _CapHeightT); g.DrawString(sSec, m_Font, b, rct, format); format.Alignment = StringAlignment.Near; rct = new RectangleF(_CapLeftR + m_mX + 5, _CapTop + m_mY, _CapWidthR - 5, _CapHeightT); g.DrawString(sSheet, m_Font, b, rct, format); if ((tsd.CAMPANY_NAME != "") && (tsd.GetIsPtintInfo(SheetInfo.CAMPANY_NAME))) { format.Alignment = StringAlignment.Far; SetFontSize(2f); rct = new RectangleF(_CampanyLeft + m_mX, _CampanyTop + m_mY, _CampanyWidth, _CampanyHeight); g.DrawString(tsd.CAMPANY_NAME, m_Font, b, rct, format); } if (tsd.GetIsPtintInfo(SheetInfo.CREATE_USER) || tsd.GetIsPtintInfo(SheetInfo.UPDATE_USER)) { string s = ""; if ((tsd.GetIsPtintInfo(SheetInfo.CREATE_USER) == true) && (tsd.CREATE_USER != "")) { s += "担当者:" + tsd.CREATE_USER; } if ((tsd.GetIsPtintInfo(SheetInfo.UPDATE_USER) == true) && (tsd.UPDATE_USER != "")) { s += " 修正者:" + tsd.UPDATE_USER; } if (s != "") { rct = new RectangleF(_UserLeft + m_mX, _UserTop + m_mY, _UserWidth, _TitleHeight); format.Alignment = StringAlignment.Far; format.LineAlignment = StringAlignment.Far; SetFontSize(1.2f); g.DrawString(s, m_Font, b, rct, format); format.LineAlignment = StringAlignment.Center; } } if ((tsd.TITLE != "") && (tsd.GetIsPtintInfo(SheetInfo.TITLE))) { format.Alignment = StringAlignment.Near; SetFontSize(2f); rct = new RectangleF(_TitleLeft + m_mX, _TitleTop + m_mY, _TitleWidth, _TitleHeight); g.DrawString(tsd.TITLE, m_Font, b, rct, format); } format.Alignment = StringAlignment.Center; format.LineAlignment = StringAlignment.Center; SetFontSize(1.5f); if ((tsd.OPUS != "") && (tsd.GetIsPtintInfo(SheetInfo.OPUS))) { rct = new RectangleF(_CapLeftOpus + m_mX, _CapTopB + m_mY, _CapWidthOpus, _CapHeightB); g.DrawString(tsd.OPUS, m_Font, b, rct, format); } if ((tsd.SUB_TITLE != "") && (tsd.GetIsPtintInfo(SheetInfo.SUB_TITLE))) { rct = new RectangleF(_CapLeftSubTitle + m_mX, _CapTopB + m_mY, _CapWidthSubTitle, _CapHeightB); g.DrawString(tsd.SUB_TITLE, m_Font, b, rct, format); } if ((tsd.SCECNE != "") && (tsd.GetIsPtintInfo(SheetInfo.SCECNE))) { rct = new RectangleF(_CapLeftScecne + m_mX, _CapTopB + m_mY, _CapWidthScecne, _CapHeightB); g.DrawString(tsd.SCECNE, m_Font, b, rct, format); } if ((tsd.CUT != "") && (tsd.GetIsPtintInfo(SheetInfo.CUT))) { SetFontSize(1.7f); rct = new RectangleF(_CapLeftCut + m_mX, _CapTopB + m_mY, _CapWidthCut, _CapHeightB); g.DrawString(tsd.CUT, m_Font, b, rct, format); } SetFontSize(2.4f); int AA = m_FrameCount / FrameRate; int BB = m_FrameCount % FrameRate; string byou = AA.ToString() + " + " + BB.ToString(); rct = new RectangleF(_CapLeftSec + m_mX, _CapTopB + m_mY, _CapWidthSec, _CapHeightB); g.DrawString(byou, m_Font, b, rct, format); rct = new RectangleF(_CapLeftR + m_mX, _CapTopB + m_mY, _CapWidthR, _CapHeightB); string sh = currentPage.ToString() + sSheetSepa + m_PageCount.ToString(); g.DrawString(sh, m_Font, b, rct, format); SetFontSize(1.0f); } finally { p.Dispose(); b.Dispose(); } }