The FootPrintRoofWrapper class is use to edit a footprint roof in a PropertyGrid. It contains a footprint roof.
예제 #1
0
        /// <summary>
        /// The construct of the GraphicsControl.
        /// </summary>
        /// <param name="footPrintRoofWrapper">A reference to FootPrintRoofWrapper which will be displayed in
        /// the picture box control.</param>
        public GraphicsControl(FootPrintRoofWrapper footPrintRoofWrapper)
        {
            InitializeComponent();
            this.Load += new EventHandler(GraphicsControl_Load);

            m_displayPen           = new Pen(System.Drawing.Color.Green, 0);
            m_highLightPen         = new Pen(System.Drawing.Color.Red, 0);
            m_footPrintRoofWrapper = footPrintRoofWrapper;
        }
예제 #2
0
        /// <summary>
        /// The construct of the GraphicsControl.
        /// </summary>
        /// <param name="footPrintRoofWrapper">A reference to FootPrintRoofWrapper which will be displayed in 
        /// the picture box control.</param>
        public GraphicsControl(FootPrintRoofWrapper footPrintRoofWrapper)
        {
            InitializeComponent();
            this.Load += new EventHandler(GraphicsControl_Load);

            m_displayPen = new Pen(System.Drawing.Color.Green, 0);
            m_highLightPen = new Pen(System.Drawing.Color.Red, 0);
            m_footPrintRoofWrapper = footPrintRoofWrapper;
        }
        /// <summary>
        /// The construct of the RoofEditorForm class.
        /// </summary>
        /// <param name="roofsManager">A reference to the roofs manager</param>
        /// <param name="roof">The roof which will be edited.</param>
        public RoofEditorForm(RoofsManager.CS.RoofsManager roofsManager, RoofBase roof)
        {
            m_roofsManager = roofsManager;
            m_roof         = roof;
            InitializeComponent();

            m_footPrintRoofWrapper = null;
            m_extrusionRoofWrapper = null;

            if (m_roof is FootPrintRoof)
            {
                m_footPrintRoofWrapper = new FootPrintRoofWrapper(m_roof as FootPrintRoof);
            }
            else
            {
                m_extrusionRoofWrapper = new ExtrusionRoofWrapper(m_roof as ExtrusionRoof);
            }
        }
예제 #4
0
        /// <summary>
        /// The construct of the RoofEditorForm class.
        /// </summary>
        /// <param name="roofsManager">A reference to the roofs manager</param>
        /// <param name="roof">The roof which will be edited.</param>
        public RoofEditorForm(RoofsManager.CS.RoofsManager roofsManager, RoofBase roof)
        {
            m_roofsManager = roofsManager;
            m_roof = roof;
            InitializeComponent();

            m_footPrintRoofWrapper = null;
            m_extrusionRoofWrapper = null;

            if (m_roof is FootPrintRoof)
            {
                m_footPrintRoofWrapper = new FootPrintRoofWrapper(m_roof as FootPrintRoof);
            }
            else
            {
                m_extrusionRoofWrapper = new ExtrusionRoofWrapper(m_roof as ExtrusionRoof);
            }
        }