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

            colorRampForm.ShowDialog();
            colorRamp = colorRampForm.m_styleGalleryItem.Item as IColorRamp;
            colorRampForm.Dispose();
        }
        private void btnSelectColorRamp_Click(object sender, EventArgs e)
        {
            ColorRampForm colorRampForm = new ColorRampForm();

            colorRampForm.ShowDialog();
            colorRamp = colorRampForm.m_styleGalleryItem.Item as IColorRamp;
            colorRampForm.Dispose();
            if (colorRamp == null)
            {
                return;
            }
            gEnumColors = colorRamp.Colors;
            gEnumColors.Reset();
        }
Exemple #3
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();
        }