Exemple #1
0
        void setUIValueByFlowNodeData(FlowNodeComponent FlowNodeData)
        {
            sdPicture.NodeName = FlowNodeData.NodeName;
            FlowNodeType type = (FlowNodeType)Enum.Parse(typeof(FlowNodeType), FlowNodeData.FlowNodeType, true);
            MergePictureRepeatDirection repeatDirection = (MergePictureRepeatDirection)Enum.Parse(typeof(MergePictureRepeatDirection), FlowNodeData.RepeatDirection, true);

            HisRunModel     = type;
            RepeatDirection = repeatDirection;
            SubFlow         = FlowNodeData.SubFlow;
        }
        void setUIValueByActivityData(ActivityComponent activityData)
        {
            sdPicture.AcitivtyName = activityData.ActivityName;
            CenterPoint            = new Point(activityData.PositionX, activityData.PositionY);
            ActivityType type = (ActivityType)Enum.Parse(typeof(ActivityType), activityData.ActivityType, true);
            MergePictureRepeatDirection repeatDirection = (MergePictureRepeatDirection)Enum.Parse(typeof(MergePictureRepeatDirection), activityData.RepeatDirection, true);

            Type               = type;
            SubFlow            = activityData.SubFlow;
            sdPicture.FontSize = activityData.FontSize;
        }
Exemple #3
0
        void setUIValueByBarCodeData(BarCodeComponent barCodeData)
        {
            BarCodeInfo   = barCodeData.BarCodeInfo;
            BarCodeWidth  = barCodeData.BarCodeWidth;
            BarCodeHeight = barCodeData.BarCodeHeight;
            BarCodeCore.EnCodeDraw drawer = new BarCodeCore.EnCodeDraw();
            barCodeGrid.Children.Clear();
            barCodeGrid.Children.Add(drawer.DrawImg39(BarCodeInfo, BarCodeWidth, BarCodeHeight));
            CenterPoint = new Point(barCodeData.PositionX, barCodeData.PositionY);
            BarCodeType type = (BarCodeType)Enum.Parse(typeof(BarCodeType), barCodeData.BarCodeType, true);
            MergePictureRepeatDirection repeatDirection = (MergePictureRepeatDirection)Enum.Parse(typeof(MergePictureRepeatDirection), barCodeData.RepeatDirection, true);

            Type            = type;
            RepeatDirection = repeatDirection;
        }