public void InitRenderer(IMultivariateRenderer pMultiRend)
		{
			// copy properties from the form to the renderer

			if (chkShapePattern.CheckState == System.Windows.Forms.CheckState.Checked)
				pMultiRend.ShapePatternRend = m_pShapePatternRend;
			else
				pMultiRend.ShapePatternRend = null;

			if (chkColor.CheckState == System.Windows.Forms.CheckState.Checked)
			{
				pMultiRend.ColorRend1 = m_pColorRend1;
				pMultiRend.ColorRend2 = m_pColorRend2;
				pMultiRend.ColorCombinationMethod = m_eColorCombinationMethod;
			}
			else
			{
				pMultiRend.ColorRend1 = null;
				pMultiRend.ColorRend2 = null;
				pMultiRend.ColorCombinationMethod = EColorCombinationType.enuCIELabMatrix; // default (?)
			}

			if (chkSize.CheckState == System.Windows.Forms.CheckState.Checked)
				pMultiRend.SizeRend = m_pSizeRend;
			else
				pMultiRend.SizeRend = null;

			IRotationRenderer pRotRend = null;
			IRotationRenderer pFormRotRend = null;
			pRotRend = pMultiRend as IRotationRenderer;
			if (chkRotation.CheckState == System.Windows.Forms.CheckState.Checked)
			{
				pFormRotRend = m_pRend as IRotationRenderer;
				pRotRend.RotationField = pFormRotRend.RotationField;
				pRotRend.RotationType = pFormRotRend.RotationType;
			}
			else
			{
				pRotRend.RotationField = "";
				pRotRend.RotationType = esriSymbolRotationType.esriRotateSymbolArithmetic; // default (?)
			}

            //ITransparencyRenderer pTransRend = null;
            //ITransparencyRenderer pFormTransRend = null;
            //pTransRend = pMultiRend as ITransparencyRenderer;
            //if (chkTransparency.CheckState == System.Windows.Forms.CheckState.Checked)
            //{
            //    pFormTransRend = m_pRend as ITransparencyRenderer;
            //    pTransRend.TransparencyField = pFormTransRend.TransparencyField;
            //}
            //else
            //    pTransRend.TransparencyField = "";


		}
		public void InitRenderer(IMultivariateRenderer pMultiRend)
		{
			// copy properties from the form to the renderer

			if (chkShapePattern.CheckState == System.Windows.Forms.CheckState.Checked)
				pMultiRend.ShapePatternRend = m_pShapePatternRend;
			else
				pMultiRend.ShapePatternRend = null;

			if (chkColor.CheckState == System.Windows.Forms.CheckState.Checked)
			{
				pMultiRend.ColorRend1 = m_pColorRend1;
				pMultiRend.ColorRend2 = m_pColorRend2;
				pMultiRend.ColorCombinationMethod = m_eColorCombinationMethod;
			}
			else
			{
				pMultiRend.ColorRend1 = null;
				pMultiRend.ColorRend2 = null;
				pMultiRend.ColorCombinationMethod = EColorCombinationType.enuCIELabMatrix; // default (?)
			}

			if (chkSize.CheckState == System.Windows.Forms.CheckState.Checked)
				pMultiRend.SizeRend = m_pSizeRend;
			else
				pMultiRend.SizeRend = null;

			IRotationRenderer pRotRend = null;
			IRotationRenderer pFormRotRend = null;
			pRotRend = pMultiRend as IRotationRenderer;
			if (chkRotation.CheckState == System.Windows.Forms.CheckState.Checked)
			{
				pFormRotRend = m_pRend as IRotationRenderer;
				pRotRend.RotationField = pFormRotRend.RotationField;
				pRotRend.RotationType = pFormRotRend.RotationType;
			}
			else
			{
				pRotRend.RotationField = "";
				pRotRend.RotationType = esriSymbolRotationType.esriRotateSymbolArithmetic; // default (?)
			}

            //ITransparencyRenderer pTransRend = null;
            //ITransparencyRenderer pFormTransRend = null;
            //pTransRend = pMultiRend as ITransparencyRenderer;
            //if (chkTransparency.CheckState == System.Windows.Forms.CheckState.Checked)
            //{
            //    pFormTransRend = m_pRend as ITransparencyRenderer;
            //    pTransRend.TransparencyField = pFormTransRend.TransparencyField;
            //}
            //else
            //    pTransRend.TransparencyField = "";


		}
		public void InitControls(IMultivariateRenderer pMultiRend, IMap pMap, IGeoFeatureLayer pGeoLayer)
		{
			// copy properties from the renderer and map to the form

			m_eColorCombinationMethod = pMultiRend.ColorCombinationMethod;
			m_pShapePatternRend = pMultiRend.ShapePatternRend;
			m_pColorRend1 = pMultiRend.ColorRend1;
			m_pColorRend2 = pMultiRend.ColorRend2;
			m_pSizeRend = pMultiRend.SizeRend;

			if (m_pShapePatternRend != null)
			{
				chkShapePattern.CheckState = System.Windows.Forms.CheckState.Checked;
				cboShapePattern.Enabled = true;
			}

			if (m_eColorCombinationMethod == EColorCombinationType.enuComponents)
			{
				radComponents.Checked = true;
				radCombination.Checked = false;
				UpdateColorComb();

			}
			else
			{
                //disabled
                //radComponents.Checked = false;
                //radCombination.Checked = true;

                radComponents.Checked = true;
                radCombination.Checked = false;
				UpdateColorComb();

			}

			if (m_pColorRend1 != null)
			{
				chkColor.CheckState = System.Windows.Forms.CheckState.Checked;
				radComponents.Enabled = true;
                //disabled
                //radCombination.Enabled = true;
                radCombination.Enabled = false;

			}
			if (m_pSizeRend != null)
			{
				chkSize.CheckState = System.Windows.Forms.CheckState.Checked;
				cboSize1.Enabled = true;
			}

			IRotationRenderer pRotRend = null;
			pRotRend = pMultiRend as IRotationRenderer;
			if (pRotRend.RotationField != "")
			{
				chkRotation.CheckState = System.Windows.Forms.CheckState.Checked;
				butRotation.Enabled = true;
			}

            //ITransparencyRenderer pTransRend = null;
            //pTransRend = pMultiRend as ITransparencyRenderer;
            //if (pTransRend.TransparencyField != "")
            //{
            //    chkTransparency.CheckState = System.Windows.Forms.CheckState.Checked;
            //    butTransparency.Enabled = true;
            //}

			m_pMap = pMap;
			m_pCurrentLayer = pGeoLayer;
			m_pRend = pMultiRend as IFeatureRenderer; // we need this object to support the root transparency dialogs

			m_PageIsDirty = false;
		}
		public void InitControls(IMultivariateRenderer pMultiRend, IMap pMap, IGeoFeatureLayer pGeoLayer)
		{
			// copy properties from the renderer and map to the form

			m_eColorCombinationMethod = pMultiRend.ColorCombinationMethod;
			m_pShapePatternRend = pMultiRend.ShapePatternRend;
			m_pColorRend1 = pMultiRend.ColorRend1;
			m_pColorRend2 = pMultiRend.ColorRend2;
			m_pSizeRend = pMultiRend.SizeRend;

			if (m_pShapePatternRend != null)
			{
				chkShapePattern.CheckState = System.Windows.Forms.CheckState.Checked;
				cboShapePattern.Enabled = true;
			}

			if (m_eColorCombinationMethod == EColorCombinationType.enuComponents)
			{
				radComponents.Checked = true;
				radCombination.Checked = false;
				UpdateColorComb();

			}
			else
			{
                //disabled
                //radComponents.Checked = false;
                //radCombination.Checked = true;

                radComponents.Checked = true;
                radCombination.Checked = false;
				UpdateColorComb();

			}

			if (m_pColorRend1 != null)
			{
				chkColor.CheckState = System.Windows.Forms.CheckState.Checked;
				radComponents.Enabled = true;
                //disabled
                //radCombination.Enabled = true;
                radCombination.Enabled = false;

			}
			if (m_pSizeRend != null)
			{
				chkSize.CheckState = System.Windows.Forms.CheckState.Checked;
				cboSize1.Enabled = true;
			}

			IRotationRenderer pRotRend = null;
			pRotRend = pMultiRend as IRotationRenderer;
			if (pRotRend.RotationField != "")
			{
				chkRotation.CheckState = System.Windows.Forms.CheckState.Checked;
				butRotation.Enabled = true;
			}

            //ITransparencyRenderer pTransRend = null;
            //pTransRend = pMultiRend as ITransparencyRenderer;
            //if (pTransRend.TransparencyField != "")
            //{
            //    chkTransparency.CheckState = System.Windows.Forms.CheckState.Checked;
            //    butTransparency.Enabled = true;
            //}

			m_pMap = pMap;
			m_pCurrentLayer = pGeoLayer;
			m_pRend = pMultiRend as IFeatureRenderer; // we need this object to support the root transparency dialogs

			m_PageIsDirty = false;
		}