예제 #1
0
 /*     void SetLEControl();
  *   TRectLine   GetWorkLine(int AIndex);
  *   int  GetWorkLineCount();*/
 void CheckNullParamAlt()
 {
     if (f_ParamAlt.Count == 0)
     {
         //         delete f_ParamAlt;
         f_ParamAlt = null;
     }
 }
예제 #2
0
 public void AddParamAlternativeItem(TParamAlternativeItem AItem)
 {
     if (AItem != null)
     {
         if (f_ParamAlt == null)
         {
             f_ParamAlt = new TParamAlternative();
         }
         f_ParamAlt.AddItem(AItem);
     }
 }
예제 #3
0
        /*      void SetLEActive(bool AValue);
         *    virtual TBaseLine  GetBaseLine(int AIndex);
         *    int  virtual GetBaseLineCount();
         *    virtual Point  GetPointTailStartShape();
         *    virtual Point  GetPointTailEndShape();*/

        public TBaseShape(int X, int Y, int step, int number = 0)
        {
            F_BrushColor = Color.White;
            F_PenColor   = Color.Black;
            F_FrameColor = Color.Red;
            F_BrushStyle = null;
            //      F_PenMode = pmCopy;
            //      F_Font = new Graphics::TFont;

            F_PenWidth = 1;
            //        F_PenStyle = psSolid;
            F_DrawFrame = false;

            //        F_Old_Font = new Graphics::TFont;

            F_Id        = number;
            F_Caption   = F_Id.ToString();
            F_TypeShape = 0;

            F_Rect = new Rectangle(X, Y - step * 2, step * 4, step * 4);
            F_Step = step;

            F_DrawLastFlag = F_DrawFirstFlag = false;

            F_FrameRect =
                new Rectangle(F_Rect.Left - SharedConst.OFFS_FRAME * F_PenWidth,
                              F_Rect.Top - SharedConst.OFFS_FRAME * F_PenWidth,
                              F_Rect.Right - F_Rect.Left + 2 * SharedConst.OFFS_FRAME * F_PenWidth,
                              F_Rect.Bottom - F_Rect.Top + 2 * SharedConst.OFFS_FRAME * F_PenWidth);
            F_DrawCaption = true;
            //  F_LEControl = NULL;
            //  F_WndHandler = 0;
            F_LEFrame = 0;
            //   F_UnderControl = NULL;
            f_LEControl            = false;
            f_ApplyAttribute       = true;
            f_LEActive             = true;
            f_WorkLines            = new List <object>();
            f_Tag                  = 0;
            f_IdAlternative        = 0;
            f_NumAlternative       = 0;
            f_IdAlternativeParent  = 0;
            f_NumAlternativeParent = 0;
            f_ParamAlt             = null;
            f_Clon                 = null;
        }