/// <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); } }