private void btnConfigureBackground_Click(object sender, EventArgs e)
        {
            var frmCfg = new frmGenerate3DPolyBackground(m_BgModelGen);
            if (frmCfg.ShowDialog(this) == DialogResult.OK)
            {
                m_PolyOrder = frmCfg.PolyOrder;
                m_PolyDepth = frmCfg.PolyDepth;

                m_BgModelGen = frmCfg.BackgroundModelGenerator;
            }
        }
        private void btnConfigureBackground_Click(object sender, EventArgs e)
        {
            var frmCfg = new frmGenerate3DPolyBackground(m_BgModelGen);

            if (frmCfg.ShowDialog(this) == DialogResult.OK)
            {
                m_PolyOrder = frmCfg.PolyOrder;
                m_PolyDepth = frmCfg.PolyDepth;

                m_BgModelGen = frmCfg.BackgroundModelGenerator;
            }
        }