public void TargCount( WorldItemDelete wid )
            {
                ArrayList targets = new ArrayList();
                foreach ( Item it in World.Items.Values )
                    if ( !( it.ItemID < WID.ToDelete ) && !( it.ItemID > WID.ToDelete ) )
                        targets.Add( it );

                WID.TargetsCount = targets.Count;
            }
            public WorldItemDeleteGump( WorldItemDelete wid ) : base( 0, 0 )
            {
                WID = wid;

                TargCount( WID );

                this.Closable = true;
                this.Disposable = true;
                this.Dragable = true;
                this.Resizable = false;

                this.AddPage( 0 );

                this.AddBackground( 88, 54, 382, 195, 2620 );
                this.AddLabel( 95, 60, 1149, @"World Item Delete:" );

                this.AddLabel( 95, 85, 1149, @"About to delete: " );
                this.AddLabel( 110, 105, 1149, @"" + WID.targetsCount );
                this.AddLabel( 95, 125, 1149, @"Items of ItemID:" );
                this.AddLabel( 210, 125, 1149, @"" + WID.ToDelete );

                this.AddButton( 95, 152, 1210, 1209, 2, GumpButtonType.Reply, 0 );//ChangeItemID
                this.AddLabel( 115, 148, 1149, @"Change ItemID to:" );
                this.AddTextEntry( 231, 148, 87, 20, 1149, 3, @"" + WID.ToDelete );

                this.AddLabel( 95, 175, 1149, @"Hit okay to delete, " );
                this.AddLabel( 95, 195, 1149, @"Cancel to get outa here!" );

                this.AddLabel( 290, 60, 1149, @"" + WID.ToDelete );
                this.AddLabel( 292, 78, 1149, @"Looks like:" );
                this.AddItem( 361, 162, +WID.ToDelete );

                this.AddButton( 314, 225, 1210, 1209, 4, GumpButtonType.Reply, 0 );
                this.AddLabel( 330, 221, 1149, @"Get ItemID By Target" );

                this.AddButton( 95, 220, 2073, 2072, 0, GumpButtonType.Reply, 0 );
                this.AddButton( 225, 220, 2076, 2075, 1, GumpButtonType.Reply, 0 );

            }
 public AddItemIDByTarget( WorldItemDelete wid ) : base( 4, false, TargetFlags.None )
 {
     WID = wid;
 }