public ConfirmRemovalGumpVariableCarpet(VariableCarpetAddon VariableCarpetaddon)
            : base(50, 50)
        {
            m_VariableCarpetAddon = VariableCarpetaddon;

            AddBackground(0, 0, 450, 260, 9270);

            AddAlphaRegion(12, 12, 426, 22);
            AddTextEntry(13, 13, 379, 20, 32, 0, @"Warning!");

            AddAlphaRegion(12, 39, 426, 209);

            AddHtml(15, 50, 420, 185, "<BODY>" +
                    "<BASEFONT COLOR=YELLOW>You are about to remove this carpet!<BR><BR>" +
                    "<BASEFONT COLOR=YELLOW>If it is removed, a deed will be placed " +
                    "<BASEFONT COLOR=YELLOW>in your backpack.<BR><BR>" +
                    "<BASEFONT COLOR=YELLOW>Are you sure that you want to remove this carpet?<BR><BR>" +
                    "</BODY>", false, false);

            AddButton(13, 220, 0xFA5, 0xFA6, 1, GumpButtonType.Reply, 0);
            AddHtmlLocalized(47, 222, 150, 20, 1052072, 0x7FFF, false, false); // Continue

            //AddButton(200, 245, 0xFB1, 0xFB2, 0, GumpButtonType.Reply, 0);
            //AddHtmlLocalized(47, 247, 450, 20, 1060051, 0x7FFF, false, false); // CANCEL
            AddButton(350, 220, 0xFB1, 0xFB2, 0, GumpButtonType.Reply, 0);
            AddHtmlLocalized(385, 222, 100, 20, 1060051, 0x7FFF, false, false); // CANCEL
        }
        public ConfirmRemovalGumpVariableCarpet(VariableCarpetAddon VariableCarpetaddon)
            : base(50, 50)
        {
            m_VariableCarpetAddon = VariableCarpetaddon;

            AddBackground(0, 0, 450, 260, 9270);

            AddAlphaRegion(12, 12, 426, 22);
            AddTextEntry(13, 13, 379, 20, 32, 0, @"Warning!");

            AddAlphaRegion(12, 39, 426, 209);

            AddHtml(15, 50, 420, 185, "<BODY>" +
"<BASEFONT COLOR=YELLOW>You are about to remove this carpet!<BR><BR>" +
"<BASEFONT COLOR=YELLOW>If it is removed, a deed will be placed " +
"<BASEFONT COLOR=YELLOW>in your backpack.<BR><BR>" +
"<BASEFONT COLOR=YELLOW>Are you sure that you want to remove this carpet?<BR><BR>" +
                             "</BODY>", false, false);

            AddButton(13, 220, 0xFA5, 0xFA6, 1, GumpButtonType.Reply, 0);
            AddHtmlLocalized(47, 222, 150, 20, 1052072, 0x7FFF, false, false); // Continue

            //AddButton(200, 245, 0xFB1, 0xFB2, 0, GumpButtonType.Reply, 0);
            //AddHtmlLocalized(47, 247, 450, 20, 1060051, 0x7FFF, false, false); // CANCEL
            AddButton(350, 220, 0xFB1, 0xFB2, 0, GumpButtonType.Reply, 0);
            AddHtmlLocalized(385, 222, 100, 20, 1060051, 0x7FFF, false, false); // CANCEL
        }
		public override void OnResponse( NetState sender, RelayInfo info )
		{
			Mobile from  = sender.Mobile;
			
			if ( info.ButtonID >= 1 )
			{
				BaseAddon addon = new VariableCarpetAddon( info.ButtonID-1, m_Width, m_Height );

				Server.Spells.SpellHelper.GetSurfaceTop( ref m_P3D );

				BaseHouse house = null;

				AddonFitResult res = addon.CouldFit( m_P3D, m_Map, from, ref house );

				if ( res == AddonFitResult.Valid )
					addon.MoveToWorld( new Point3D( m_P3D ), m_Map );
				else if ( res == AddonFitResult.Blocked )
					from.SendLocalizedMessage( 500269 ); // You cannot build that there.
				else if ( res == AddonFitResult.NotInHouse )
					from.SendLocalizedMessage( 500274 ); // You can only place this in a house that you own!
				else if ( res == AddonFitResult.DoorsNotClosed )
					from.SendMessage( "All doors must be closed!" );
				
				if ( res == AddonFitResult.Valid )
				{
					m_Deed.Delete();

					/*if ( houses != null )
					{
						foreach ( Server.Multis.BaseHouse h in houses )
							h.Addons.Add( addon );

						from.SendGump( new VariableCarpetPlacedGump( m_Deed ) );
					}*/
                                        house.Addons.Add( addon );
				}
				else
				{
					addon.Delete();
				}
			}
		}