using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using WebWindowComplex.Json; using static WebWindowComplex.Json.WindowConst; namespace WebWindowComplex.Models { public class FrameArcElement { #region Public Constructors public FrameArcElement(Area ParentArea, Window ParentWindow, double nSection, bool bCutEdge, bool bIsAlign) { m_ParentArea = ParentArea; m_ParentWindow = ParentWindow; m_nSection = nSection; m_bCutEdge = bCutEdge; m_bIsAlign = bIsAlign; } #endregion Public Constructors #region Public Properties public int nQty { get { return m_nQty; } set { m_nQty = value; } } public double nSection { get { return m_nSection; } set { m_nSection = value; } } public bool bCutEdge { get { return m_bCutEdge; } set { m_bCutEdge = value; } } public bool bIsAlign { get { return m_bIsAlign; } set { m_bIsAlign = value; } } #endregion Public Properties #region Internal Methods internal void SetQty(int Qty) { m_nQty = Qty; } internal void SetSection(double Section) { m_nSection = Section; } //internal JsonFrameArcElement Serialize() //{ // JsonFrameArcElement jArcElement = new JsonFrameArcElement(nSection, bCutEdge, bIsAlign); // return jArcElement; //} #endregion Internal Methods #region Protected Fields protected Area m_ParentArea; protected Window m_ParentWindow; #endregion Protected Fields #region Private Fields private double m_nSection; private int m_nQty; private bool m_bCutEdge = false; private bool m_bIsAlign = false; #endregion Private Fields } }