Пример #1
0
        public List <ulong> DrawRectFrame()
        {
            List <ulong> rectFrameLst = new List <ulong>();
            double       frameHeight  = FrameControlData.GetMainFrameHeight();
            double       frameWidth   = FrameControlData.GetMainFrameWidth();

            _frameHeight = frameHeight;
            _frameWidth  = frameWidth;
            LJJSPoint     startPt     = new LJJSPoint(DrawCommonData.xStart, DrawCommonData.yStart);
            DrawDirection ddMainFrame = new DrawDirection();

            ddMainFrame.HorDirection = 1;
            ddMainFrame.VerDirection = -1;

            DrawDirection ddTitleFrame = new DrawDirection();

            ddTitleFrame.HorDirection = 1;
            ddTitleFrame.VerDirection = 1;

            Rect.AddBlackRect(startPt, frameHeight, frameWidth, FrameDesign.PictureFrameLineWidth, ddMainFrame);
            Rect.AddBlackRect(startPt, FrameDesign.LineRoadTitleBarHeigh, frameWidth, FrameDesign.PictureFrameLineWidth, ddTitleFrame);

            if (FrameDesign.JdStrLst.Count() > 1 && FrameControlData.LineRoadControlLst.Count() > 0)
            {
                List <JDStruc> firstLineRoadJDStrucLst = FrameControlData.LineRoadControlLst[0].LineRoadJDStructLst;
                //fff
                for (int i = 0; i < firstLineRoadJDStrucLst.Count(); i++) //2560-2590 2660-2690
                {
                    JDStruc   tmpJDStruc = firstLineRoadJDStrucLst[i];
                    double    xStart     = tmpJDStruc.JDPtStart.XValue;
                    double    yStart     = tmpJDStruc.JDPtStart.YValue + DrawCommonData.DirectionDown * tmpJDStruc.JDHeight;
                    LJJSPoint tmpstartPt = new LJJSPoint(xStart, yStart);
                    Line.BuildHorToRightBlackSolidLine(tmpstartPt, frameWidth, FrameDesign.PictureFrameLineWidth, "");

                    tmpstartPt = new LJJSPoint(xStart, yStart + DrawCommonData.DirectionDown * FrameDesign.JdSpace);
                    Line.BuildHorToRightBlackSolidLine(tmpstartPt, frameWidth, FrameDesign.PictureFrameLineWidth, "");
                }
            }

            return(rectFrameLst);
        }
Пример #2
0
 public void AddControlData(FrameControlData controlData)
 {
     m_ControlDataList.Add(controlData);
 }
Пример #3
0
 public void RiceveControl(FrameControlData controlData)
 {
     m_ControlDataList.Add(controlData);
 }