private void button2_Click(object sender, EventArgs e)
        {
            ColorRampForm colorRampForm = new ColorRampForm();

            colorRampForm.ShowDialog();
            colorRamp = colorRampForm.m_styleGalleryItem.Item as IColorRamp;
            colorRampForm.Dispose();
        }
Exemple #2
0
        private void btnSelectColorRamp_Click(object sender, EventArgs e)
        {
            //GetSymbolByControl colorRampForm = new GetSymbolByControl(esriSymbologyStyleClass.esriStyleClassColorRamps);
            //colorRampForm.ShowDialog();   //08.04.09
            //if (colorRampForm.m_styleGalleryItem != null)
            //    colorRamp = colorRampForm.m_styleGalleryItem.Item as IColorRamp;

            //colorRampForm.Dispose();


            ColorRampForm colorRampform = new ColorRampForm();

            colorRampform.ShowDialog();
            colorRamp = colorRampform.m_styleGalleryItem.Item as IColorRamp;
            colorRampform.Dispose();
        }