private void method_11(XmlNode xmlNode_0) { ISymbol symbol = null; string str = ""; for (int i = 0; i < xmlNode_0.Attributes.Count; i++) { XmlAttribute attribute = xmlNode_0.Attributes[i]; switch (attribute.Name.ToLower()) { case "description": str = attribute.Value; break; case "symbol": symbol = this.method_7(attribute.Value); break; } } if (symbol != null) { YTLegendItem item = new YTLegendItem(symbol, str); object[] objArray = new object[] { item.Symbol, item.Description }; this.renderInfoListView1.Add(objArray).Tag = item; } }
private void method_12(int int_1, object object_0) { if (this.OnValueChange != null) { YTLegendItem tag = this.renderInfoListView1.Items[int_1].Tag as YTLegendItem; tag.Description = this.renderInfoListView1.Items[int_1].SubItems[1].Text; ListViewItem item2 = this.renderInfoListView1.Items[int_1]; tag.Symbol = (item2 as ListViewItemEx).Style as ISymbol; this.OnValueChange(); } }
private void btnOK_Click(object sender, EventArgs e) { this.jlklenendItem_0 = new YTLegendItem(this.btnStyle.Style as ISymbol, this.txtLegendItemName.Text); }