public static ListViewItem BuildListItem(FactoryMobPoint mobFac, int PointNum, SMobPoint p) { ListViewItem item = new ListViewItem(new string[] { p.Name, p.Level, p.Element.ToName(true), p.Anzahl }); item.Tag = PointNum; item.ToolTipText = string.Format("{0} ({1}) | {2} [{3}]", p.Name, p.Level, p.Element, p.Anzahl); item.ImageIndex = p.RuleLevelToIndex(mobFac); return(item); }
public override void AddToList(IPoint Point) { SMobPoint p = Point as SMobPoint; int i = Points.Count; Points.Add(p); if (ListView == null) { return; } ListView.Items.Add(FactoryMobPoint.BuildListItem(this, i, p)); }
public static ListViewItem BuildListItem( FactoryMobPoint mobFac, int PointNum, SMobPoint p ) { ListViewItem item = new ListViewItem( new string[] { p.Name, p.Level, p.Element.ToName( true ), p.Anzahl } ); item.Tag = PointNum; item.ToolTipText = string.Format( "{0} ({1}) | {2} [{3}]", p.Name, p.Level, p.Element, p.Anzahl ); item.ImageIndex = p.RuleLevelToIndex( mobFac ); return item; }