private void menuitemUnGroup_Click(object sender, EventArgs e)
 {
     try
     {
         ListViewItemEx ex       = this.listView1.SelectedItems[0] as ListViewItemEx;
         string[]       strArray = ex.SubItems[1].Text.Split(new char[] { ';' });
         if (ex.SubItems[3].Text != "?")
         {
             ex.SubItems[3].Text = "?";
         }
         ISymbol symbol = this.iuniqueValueRenderer_0.get_Symbol(strArray[0]);
         ex.SubItems[1].Text = strArray[0];
         ex.SubItems[2].Text = strArray[0];
         object[] objArray = new object[4];
         for (int i = 1; i < strArray.Length; i++)
         {
             string str2 = strArray[i];
             objArray[0] = symbol;
             objArray[1] = str2;
             objArray[2] = str2;
             objArray[3] = "?";
             this.listView1.Add(objArray);
         }
     }
     catch (Exception)
     {
     }
 }
Esempio n. 2
0
 private void RenderInfoListView_DoubleClick(object sender, EventArgs e)
 {
     if (base.SelectedItems.Count > 0)
     {
         Rectangle itemRect = base.GetItemRect(base.SelectedIndices[0]);
         int       num      = this.int_0;
         int       left     = itemRect.Left;
         int       num3     = itemRect.Left;
         int       index    = 0;
         while (index < base.Columns.Count)
         {
             left  = num3;
             num3 += base.Columns[index].Width;
             if ((num > left) && (num < num3))
             {
                 break;
             }
             index++;
         }
         if (index != 0)
         {
             if (((base.SelectedItems.Count == 1) && (this.ColumnEditables != null)) &&
                 this.ColumnEditables[index])
             {
                 this.int_2            = index;
                 this.listViewItem_0   = base.SelectedItems[0];
                 this.textBox.Size     = new Size(num3 - left, this.listViewItem_0.Bounds.Height);
                 this.textBox.Location = new System.Drawing.Point(left, this.listViewItem_0.Bounds.Y);
                 this.textBox.Show();
                 this.textBox.Text = this.listViewItem_0.SubItems[this.int_2].Text;
                 this.textBox.SelectAll();
                 this.textBox.Focus();
             }
         }
         else
         {
             try
             {
                 frmSymbolSelector selector = new frmSymbolSelector();
                 selector.SetStyleGallery(this.istyleGallery_0);
                 ListViewItemEx ex = base.Items[base.SelectedIndices[0]] as ListViewItemEx;
                 selector.SetSymbol(ex.Style);
                 if (selector.ShowDialog() == DialogResult.OK)
                 {
                     ex.Style = selector.GetSymbol();
                     this.method_1();
                     base.Invalidate();
                     if (this.OnValueChanged != null)
                     {
                         this.OnValueChanged(base.SelectedIndices[0], ex.Style);
                     }
                 }
             }
             catch
             {
             }
         }
     }
 }
Esempio n. 3
0
        public void Add(IStyleGalleryItem istyleGalleryItem_0)
        {
            ListViewItemEx ex = new ListViewItemEx(new string[] { istyleGalleryItem_0.Name, istyleGalleryItem_0.Category })
            {
                Tag = istyleGalleryItem_0
            };

            base.Items.Add(ex);
        }
Esempio n. 4
0
        private void method_3()
        {
            string name = "";
            esriDataNormalization esriNormalizeByNothing = esriDataNormalization.esriNormalizeByNothing;

            if (this.cboNormFields.SelectedIndex == 0)
            {
                esriNormalizeByNothing = esriDataNormalization.esriNormalizeByNothing;
            }
            else if (this.cboNormFields.SelectedIndex == 1)
            {
                esriNormalizeByNothing = esriDataNormalization.esriNormalizeByLog;
            }
            else if (this.cboNormFields.SelectedIndex == 2)
            {
                esriNormalizeByNothing = esriDataNormalization.esriNormalizeByPercentOfTotal;
            }
            else if (this.cboNormFields.SelectedIndex > 2)
            {
                name = (this.cboNormFields.SelectedItem as FieldWrap).Name;
                esriNormalizeByNothing = esriDataNormalization.esriNormalizeByField;
            }
            this.method_5(this.icolorRamp_0, this.iclassBreaksRenderer_0, this.cboClassifyNum.SelectedIndex + 1,
                          this.method_4(), (this.cboValueFields.SelectedItem as FieldWrap).Name, name, esriNormalizeByNothing);
            this.listView1.Items.Clear();
            string[] strArray = new string[3];
            int      index    = 0;

            while (true)
            {
                if (index >= this.iclassBreaksRenderer_0.BreakCount)
                {
                    break;
                }
                strArray[0] = "";
                strArray[1] = (this.iclassBreaksRenderer_0 as IClassBreaksUIProperties).get_LowBreak(index).ToString() +
                              " - " + this.iclassBreaksRenderer_0.get_Break(index).ToString();
                strArray[2] = this.iclassBreaksRenderer_0.get_Label(index);
                ListViewItemEx ex = new ListViewItemEx(strArray);
                try
                {
                    ex.Style = this.iclassBreaksRenderer_0.get_Symbol(index);
                }
                catch (Exception exception)
                {
                    Logger.Current.Error("", exception, "");
                }
                this.listView1.Add(ex);
                index++;
            }
            this.cboClassifyNum.SelectedIndex = this.iclassBreaksRenderer_0.BreakCount - 1;
        }
Esempio n. 5
0
        private void btnUnSelectAll_Click(object sender, EventArgs e)
        {
            for (int i = 0; i < this.SelectFieldslistView.Items.Count; i++)
            {
                ListViewItemEx ex = this.SelectFieldslistView.Items[i] as ListViewItemEx;
                this.FieldsListBoxCtrl.Items.Add(ex.Tag);
            }
            this.SelectFieldslistView.Items.Clear();
            ISymbolArray dotDensitySymbol = this.idotDensityRenderer_0.DotDensitySymbol as ISymbolArray;

            (this.idotDensityRenderer_0 as IRendererFields).ClearFields();
            dotDensitySymbol.ClearSymbols();
        }
        private void method_3()
        {
            string text = this.cboNormFields.Text;
            string name = "";

            if (this.cboValueFields.SelectedIndex > 0)
            {
                name = (this.cboValueFields.SelectedItem as FieldWrap).Name;
            }
            else
            {
                name = "";
            }
            this.method_4(this.icolorRamp_0, this.irasterClassifyColorRampRenderer_0,
                          this.cboClassifyNum.SelectedIndex + 1, this.method_2(), name, text);
            this.listView1.Items.Clear();
            string[] strArray = new string[3];
            int      index    = 0;

            while (true)
            {
                if (index >= this.irasterClassifyColorRampRenderer_0.ClassCount)
                {
                    break;
                }
                strArray[0] = "";
                if (index == 0)
                {
                    strArray[1] = this.irasterClassifyColorRampRenderer_0.get_Break(index).ToString();
                }
                else
                {
                    strArray[1] = this.irasterClassifyColorRampRenderer_0.get_Break(index - 1).ToString() + " - " +
                                  this.irasterClassifyColorRampRenderer_0.get_Break(index).ToString();
                }
                strArray[2] = this.irasterClassifyColorRampRenderer_0.get_Label(index);
                ListViewItemEx ex = new ListViewItemEx(strArray);
                try
                {
                    ex.Style = this.irasterClassifyColorRampRenderer_0.get_Symbol(index);
                }
                catch (Exception exception)
                {
                    Logger.Current.Error("", exception, "");
                }
                this.listView1.Add(ex);
                index++;
            }
            this.cboClassifyNum.SelectedIndex = this.irasterClassifyColorRampRenderer_0.ClassCount - 1;
        }
Esempio n. 7
0
        private void menuitemGroup_Click(object sender, EventArgs e)
        {
            ListViewItemEx ex   = this.listView1.SelectedItems[0] as ListViewItemEx;
            string         text = ex.SubItems[1].Text;

            text.Split(new char[] { ',' });
            int num = -1;

            if (ex.SubItems[3].Text != "?")
            {
                num = Convert.ToInt32(ex.SubItems[3].Text);
            }
            List <ListViewItemEx> list = new List <ListViewItemEx>();

            for (int i = 1; i < this.listView1.SelectedItems.Count; i++)
            {
                ListViewItemEx item = this.listView1.SelectedItems[i] as ListViewItemEx;
                string         str2 = item.SubItems[1].Text;
                if (num != -1)
                {
                    if (ex.SubItems[3].Text != "?")
                    {
                        num += Convert.ToInt32(item.SubItems[3].Text);
                    }
                    else
                    {
                        num = -1;
                    }
                }
                text = text + ";" + str2;
                list.Add(item);
            }
            ex.SubItems[1].Text = text;
            if (num == -1)
            {
                ex.SubItems[3].Text = "?";
            }
            else
            {
                ex.SubItems[3].Text = num.ToString();
            }
            foreach (ListViewItemEx ex3 in list)
            {
                this.listView1.Items.Remove(ex3);
            }
        }
Esempio n. 8
0
        private void btnMoveUp_Click(object sender, EventArgs e)
        {
            int            index = this.SelectFieldslistView.SelectedIndices[0];
            ListViewItemEx item  = this.SelectFieldslistView.Items[index] as ListViewItemEx;

            this.SelectFieldslistView.Items.RemoveAt(index);
            this.SelectFieldslistView.Items.Insert(index - 1, item);
            ISymbolArray dotDensitySymbol = this.idotDensityRenderer_0.DotDensitySymbol as ISymbolArray;

            dotDensitySymbol.MoveSymbol(dotDensitySymbol.get_Symbol(index), index - 1);
            IRendererFields fields = this.idotDensityRenderer_0 as IRendererFields;

            fields.ClearFields();
            for (int i = 0; i < this.SelectFieldslistView.Items.Count; i++)
            {
                item = this.SelectFieldslistView.Items[i] as ListViewItemEx;
                FieldWrap tag = item.Tag as FieldWrap;
                fields.AddField(tag.Name, tag.ToString());
            }
        }
Esempio n. 9
0
        private void method_4()
        {
            if (((this.itinColorRampRenderer_0 as ITinRenderer).Name == "Elevation") ||
                ((this.itinColorRampRenderer_0 as ITinRenderer).Name == "Node elevation"))
            {
                this.method_3(this.icolorRamp_0, this.itinColorRampRenderer_0, this.cboClassifyNum.SelectedIndex + 1,
                              this.itinLayer_0.Dataset);
            }
            this.listView1.Items.Clear();
            string[] strArray = new string[3];
            int      index    = 0;

            while (true)
            {
                if (index >= this.itinColorRampRenderer_0.BreakCount)
                {
                    break;
                }
                strArray[0] = "";
                strArray[1] =
                    (this.itinColorRampRenderer_0 as IClassBreaksUIProperties).get_LowBreak(index).ToString() + " - " +
                    this.itinColorRampRenderer_0.get_Break(index).ToString();
                strArray[2] = this.itinColorRampRenderer_0.get_Label(index);
                ListViewItemEx ex = new ListViewItemEx(strArray);
                try
                {
                    ex.Style = this.itinColorRampRenderer_0.get_Symbol(index);
                }
                catch (Exception exception)
                {
                    Logger.Current.Error("", exception, "");
                }
                this.listView1.Add(ex);
                index++;
            }
            this.cboClassifyNum.SelectedIndex = this.itinColorRampRenderer_0.BreakCount - 1;
        }
Esempio n. 10
0
        public void Apply()
        {
            this.iuniqueValueRenderer_0.RemoveAllValues();
            for (int i = 0; i < this.listView1.Items.Count; i++)
            {
                ListViewItemEx ex = this.listView1.Items[i] as ListViewItemEx;
                if (ex != null)
                {
                    string[] strArray = ex.SubItems[1].Text.Split(new char[] { ';' });
                    this.iuniqueValueRenderer_0.AddValue(strArray[0], null, ex.Style as ISymbol);
                    this.iuniqueValueRenderer_0.set_Label(strArray[0], ex.SubItems[2].Text);
                    for (int j = 1; j < strArray.Length; j++)
                    {
                        this.iuniqueValueRenderer_0.AddValue(strArray[j], null, ex.Style as ISymbol);
                        this.iuniqueValueRenderer_0.set_Label(strArray[j], ex.SubItems[2].Text);
                        this.iuniqueValueRenderer_0.AddReferenceValue(strArray[j], strArray[0]);
                    }
                }
            }
            IObjectCopy          copy     = new ObjectCopyClass();
            IUniqueValueRenderer renderer = copy.Copy(this.iuniqueValueRenderer_0) as IUniqueValueRenderer;

            (this.ilayer_0 as IGeoFeatureLayer).Renderer = renderer as IFeatureRenderer;
        }
Esempio n. 11
0
        public void Add(ListViewItemEx listViewItemEx_0)
        {
            int size;

            if (base.Items.Count == 0)
            {
                this.imageList_0.ImageSize = new Size(16, 16);
            }
            object tag = listViewItemEx_0.Tag;

            if (tag is IMarkerSymbol)
            {
                size = (int)(tag as IMarkerSymbol).Size;
                if (size > 40)
                {
                    size = 40;
                }
                if (size > this.imageList_0.ImageSize.Height)
                {
                    this.imageList_0.ImageSize = new Size(size, size);
                }
            }
            else if (tag is ILineSymbol)
            {
                size = (int)(tag as ILineSymbol).Width;
                if (size > 40)
                {
                    size = 40;
                }
                if (size > this.imageList_0.ImageSize.Height)
                {
                    this.imageList_0.ImageSize = new Size(size, size);
                }
            }
            base.Items.Add(listViewItemEx_0);
        }
Esempio n. 12
0
 private void btnSelect_Click(object sender, EventArgs e)
 {
     try
     {
         int          num3;
         double       num              = 0.0;
         double       num2             = double.Parse(this.txtSize.Text);
         ISymbolArray dotDensitySymbol = this.idotDensityRenderer_0.DotDensitySymbol as ISymbolArray;
         string[]     strArray         = new string[2];
         for (num3 = this.FieldsListBoxCtrl.SelectedIndices.Count - 1; num3 >= 0; num3--)
         {
             int index = this.FieldsListBoxCtrl.SelectedIndices[num3];
             (this.idotDensityRenderer_0 as IRendererFields).AddField(
                 (this.FieldsListBoxCtrl.Items[index] as FieldWrap).Name,
                 this.FieldsListBoxCtrl.Items[index].ToString());
             IColor color = this.ienumColors_0.Next();
             if (color == null)
             {
                 this.ienumColors_0.Reset();
                 color = this.ienumColors_0.Next();
             }
             ISymbol symbol =
                 this.CreateMarkerSymbol(color, esriSimpleMarkerStyle.esriSMSCircle, num2) as ISymbol;
             strArray[0] = "";
             strArray[1] = this.FieldsListBoxCtrl.Items[index].ToString();
             ListViewItemEx ex = new ListViewItemEx(strArray)
             {
                 Style = symbol,
                 Tag   = this.FieldsListBoxCtrl.Items[index]
             };
             this.SelectFieldslistView.Add(ex);
             dotDensitySymbol.AddSymbol(symbol);
             this.FieldsListBoxCtrl.Items.RemoveAt(index);
         }
         IDotDensityFillSymbol symbol2 = (dotDensitySymbol as IClone).Clone() as IDotDensityFillSymbol;
         IDotDensityFillSymbol symbol3 = (dotDensitySymbol as IClone).Clone() as IDotDensityFillSymbol;
         IDotDensityFillSymbol symbol4 = (dotDensitySymbol as IClone).Clone() as IDotDensityFillSymbol;
         this.MinsymbolItem.Symbol  = symbol2;
         this.MeansymbolItem.Symbol = symbol3;
         this.MaxsymbolItem.Symbol  = symbol4;
         double[] numArray  = new double[dotDensitySymbol.SymbolCount];
         double[] numArray2 = new double[dotDensitySymbol.SymbolCount];
         double[] numArray3 = new double[dotDensitySymbol.SymbolCount];
         for (num3 = 0; num3 < dotDensitySymbol.SymbolCount; num3++)
         {
             double num5;
             double num6;
             double num7;
             this.GetStaticsValue((this.idotDensityRenderer_0 as IRendererFields).get_Field(num3), out num5,
                                  out num6, out num7);
             numArray[num3]  = num5;
             numArray3[num3] = num6;
             numArray2[num3] = num7;
             if (num5 > 0.0)
             {
                 if (num == 0.0)
                 {
                     num = num5;
                 }
                 else
                 {
                     num = (num < num5) ? num : num5;
                 }
             }
             num = (num > this.idotDensityRenderer_0.DotValue) ? this.idotDensityRenderer_0.DotValue : num;
             if (num == 0.0)
             {
                 num = 500.0;
             }
             this.txtPointValue.Text             = num.ToString();
             this.idotDensityRenderer_0.DotValue = num;
         }
         for (num3 = 0; num3 < numArray.Length; num3++)
         {
             symbol2.set_DotCount(num3, (int)(numArray[num3] / num));
             symbol3.set_DotCount(num3, (int)(numArray3[num3] / num));
             symbol4.set_DotCount(num3, (int)(numArray2[num3] / num));
         }
         this.MinsymbolItem.Invalidate();
         this.MeansymbolItem.Invalidate();
         this.MaxsymbolItem.Invalidate();
     }
     catch
     {
     }
     this.btnUnSelectAll.Enabled = true;
 }
Esempio n. 13
0
        private void method_0()
        {
            IFields fields2;
            int     num;

            this.FieldsListBoxCtrl.Items.Clear();
            this.SelectFieldslistView.Items.Clear();
            IRendererFields fields = this.idotDensityRenderer_0 as IRendererFields;

            if (this.igeoFeatureLayer_0 is IDisplayTable)
            {
                fields2 = (this.igeoFeatureLayer_0 as IDisplayTable).DisplayTable.Fields;
            }
            else
            {
                fields2 = this.igeoFeatureLayer_0.FeatureClass.Fields;
            }
            this.colorRampComboBox1.Text = this.idotDensityRenderer_0.ColorScheme;
            if (this.colorRampComboBox1.Items.Count == 0)
            {
                this.ienumColors_0 = this.method_1(null, fields2.FieldCount);
            }
            else
            {
                this.ienumColors_0 = this.method_1(this.colorRampComboBox1.GetSelectColorRamp(), fields2.FieldCount);
            }
            bool flag = false;

            for (num = 0; num < fields2.FieldCount; num++)
            {
                IField        field = fields2.get_Field(num);
                esriFieldType type  = field.Type;
                if ((((type != esriFieldType.esriFieldTypeDouble) && (type != esriFieldType.esriFieldTypeInteger)) &&
                     (type != esriFieldType.esriFieldTypeSingle)) && (type != esriFieldType.esriFieldTypeSmallInteger))
                {
                    continue;
                }
                flag = true;
                string str = field.Name.ToUpper();
                for (int i = 0; i < fields.FieldCount; i++)
                {
                    if (str == fields.get_Field(i).ToUpper())
                    {
                        goto Label_0145;
                    }
                }
                goto Label_0147;
Label_0145:
                flag = false;
Label_0147:
                if (flag)
                {
                    this.FieldsListBoxCtrl.Items.Add(new FieldWrap(field));
                }
            }
            double[]     numArray         = new double[fields.FieldCount];
            double[]     numArray2        = new double[fields.FieldCount];
            double[]     numArray3        = new double[fields.FieldCount];
            string[]     strArray         = new string[2];
            ISymbolArray dotDensitySymbol = this.idotDensityRenderer_0.DotDensitySymbol as ISymbolArray;

            for (num = 0; num < fields.FieldCount; num++)
            {
                double num3;
                double num4;
                double num5;
                strArray[0] = "";
                strArray[1] = fields.get_FieldAlias(num);
                ListViewItemEx ex = new ListViewItemEx(strArray)
                {
                    Style = dotDensitySymbol.get_Symbol(num),
                    Tag   = new FieldWrap(fields2.get_Field(fields2.FindField(fields.get_Field(num))))
                };
                this.SelectFieldslistView.Add(ex);
                this.GetStaticsValue(fields.get_Field(num), out num3, out num4, out num5);
                numArray[num]  = num3;
                numArray3[num] = num4;
                numArray2[num] = num5;
            }
            if (fields.FieldCount > 0)
            {
                this.btnUnSelectAll.Enabled = true;
            }
            this.txtSize.Text       = this.idotDensityRenderer_0.DotDensitySymbol.DotSize.ToString();
            this.txtPointValue.Text = this.idotDensityRenderer_0.DotValue.ToString();
            double num7 = double.Parse(this.txtPointValue.Text);
            IDotDensityFillSymbol symbol =
                (this.idotDensityRenderer_0.DotDensitySymbol as IClone).Clone() as IDotDensityFillSymbol;
            IDotDensityFillSymbol symbol2 =
                (this.idotDensityRenderer_0.DotDensitySymbol as IClone).Clone() as IDotDensityFillSymbol;
            IDotDensityFillSymbol symbol3 =
                (this.idotDensityRenderer_0.DotDensitySymbol as IClone).Clone() as IDotDensityFillSymbol;

            this.MinsymbolItem.Symbol  = symbol;
            this.MeansymbolItem.Symbol = symbol2;
            this.MaxsymbolItem.Symbol  = symbol3;
            for (num = 0; num < (symbol as ISymbolArray).SymbolCount; num++)
            {
                symbol.set_DotCount(num, (int)(numArray[num] / num7));
                symbol2.set_DotCount(num, (int)(numArray3[num] / num7));
                symbol3.set_DotCount(num, (int)(numArray2[num] / num7));
            }
            this.MinsymbolItem.Invalidate();
            this.MeansymbolItem.Invalidate();
            this.MaxsymbolItem.Invalidate();
        }
Esempio n. 14
0
        public ListViewItemEx Add(object[] object_0)
        {
            int size;

            if (base.Items.Count == 0)
            {
                this.imageList_0.ImageSize = new Size(16, 16);
            }
            if (object_0 == null)
            {
                return(null);
            }
            string[] strArray = new string[base.Columns.Count];
            strArray[0] = "";
            object obj2 = null;

            for (int i = 0; i < object_0.Length; i++)
            {
                if (i == 0)
                {
                    obj2 = object_0[i];
                }
                else if (object_0[i] != null)
                {
                    strArray[i] = object_0[i].ToString();
                }
                else
                {
                    strArray[i] = "";
                }
            }
            if (obj2 is IMarkerSymbol)
            {
                size = (int)(obj2 as IMarkerSymbol).Size;
                if (size > 40)
                {
                    size = 40;
                }
                if (size > this.imageList_0.ImageSize.Height)
                {
                    this.imageList_0.ImageSize = new Size(size, size);
                }
            }
            else if (obj2 is ILineSymbol)
            {
                size = (int)(obj2 as ILineSymbol).Width;
                if (size > 40)
                {
                    size = 40;
                }
                if (size > this.imageList_0.ImageSize.Height)
                {
                    this.imageList_0.ImageSize = new Size(size, size);
                }
            }
            ListViewItemEx ex = new ListViewItemEx(strArray)
            {
                Style = obj2
            };

            base.Items.Add(ex);
            return(ex);
        }
Esempio n. 15
0
        private void method_2()
        {
            IFields fields2;
            int     num;

            this.FieldsListBoxCtrl.Items.Clear();
            this.SelectFieldslistView.Items.Clear();
            IRendererFields fields = this.ichartRenderer_0 as IRendererFields;

            if (this.igeoFeatureLayer_0 is IDisplayTable)
            {
                fields2 = (this.igeoFeatureLayer_0 as IDisplayTable).DisplayTable.Fields;
            }
            else
            {
                fields2 = this.igeoFeatureLayer_0.FeatureClass.Fields;
            }
            this.colorRampComboBox1.Text = this.ichartRenderer_0.ColorScheme;
            if (this.colorRampComboBox1.Items.Count == 0)
            {
                this.ienumColors_0 = this.method_1(null, fields2.FieldCount);
            }
            else
            {
                this.ienumColors_0 = this.method_1(this.colorRampComboBox1.GetSelectColorRamp(), fields2.FieldCount);
            }
            bool flag = false;

            for (num = 0; num < fields2.FieldCount; num++)
            {
                IField        field = fields2.get_Field(num);
                esriFieldType type  = field.Type;
                if ((((type != esriFieldType.esriFieldTypeDouble) && (type != esriFieldType.esriFieldTypeInteger)) &&
                     (type != esriFieldType.esriFieldTypeSingle)) && (type != esriFieldType.esriFieldTypeSmallInteger))
                {
                    continue;
                }
                flag = true;
                string str = field.Name.ToUpper();
                for (int i = 0; i < fields.FieldCount; i++)
                {
                    if (str == fields.get_Field(i).ToUpper())
                    {
                        goto Label_0145;
                    }
                }
                goto Label_0147;
Label_0145:
                flag = false;
Label_0147:
                if (flag)
                {
                    this.FieldsListBoxCtrl.Items.Add(new FieldWrap(field));
                }
            }
            string[]     strArray    = new string[2];
            ISymbolArray chartSymbol = this.ichartRenderer_0.ChartSymbol as ISymbolArray;

            for (num = 0; num < fields.FieldCount; num++)
            {
                strArray[0] = "";
                strArray[1] = fields.get_FieldAlias(num);
                ListViewItemEx ex = new ListViewItemEx(strArray)
                {
                    Style = chartSymbol.get_Symbol(num),
                    Tag   = new FieldWrap(fields2.get_Field(fields2.FindField(fields.get_Field(num))))
                };
                this.SelectFieldslistView.Add(ex);
            }
            if ((this.igeoFeatureLayer_0.FeatureClass.ShapeType == esriGeometryType.esriGeometryPoint) ||
                (this.igeoFeatureLayer_0.FeatureClass.ShapeType == esriGeometryType.esriGeometryMultipoint))
            {
                this.lblBackground.Visible = false;
                this.btnStyle.Visible      = false;
            }
            else
            {
                this.lblBackground.Visible = true;
                this.btnStyle.Visible      = true;
            }
            if (this.ichartRenderer_0.BaseSymbol == null)
            {
                this.ichartRenderer_0.BaseSymbol = this.method_8(this.igeoFeatureLayer_0.FeatureClass.ShapeType);
            }
            this.btnStyle.Style        = this.ichartRenderer_0.BaseSymbol;
            this.chkOverposter.Checked = this.ichartRenderer_0.UseOverposter;
        }