/// <summary>
        /// Initializes a new instance of the <c>HatchPattern</c> class.
        /// </summary>
        /// <param name="name">Pattern name, always stored as uppercase.</param>
        /// <param name="description">Description of the pattern (optional, this information is not saved in the dxf file).</param>
        public HatchPattern(string name, string description = null)
        {
            this.name        = name.ToUpper();
            this.description = description;
            this.style       = HatchStyle.Normal;
            this.fill        = this.name == PredefinedHatchPatternName.Solid ? FillFlag.SolidFill : FillFlag.PatternFill;
            this.type        = HatchType.UserDefined;
            this.angle       = 0.0;
            this.scale       = 1.0;

            this.lineDefinitions = new List <HatchPatternLineDefinition>();
        }
Example #2
0
        public static Callback Fill(IOrder inboundOrder, IOrder matchedOrder, Quantity fillQuantity, Price fillPrice,
                                    FillFlag fillFlag)
        {
            var result = new Callback
            {
                Type         = CallbackType.OrderFill,
                Order        = inboundOrder,
                MatchedOrder = matchedOrder,
                Quantity     = fillQuantity,
                Price        = fillPrice,
                Flag         = fillFlag
            };

            return(result);
        }