Exemple #1
0
        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);
        }
Exemple #2
0
        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));
        }
Exemple #3
0
		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;
		}