Server.Misc.ShardPollPrompt.OnResponse C# (CSharp) Méthode

OnResponse() public méthode

public OnResponse ( Mobile from, string text ) : void
from Mobile
text string
Résultat void
		public override void OnResponse( Mobile from, string text )
		{
			if ( m_Poller.Active )
			{
				from.SendMessage( "You may not edit an active poll. Deactivate it first." );
			}
			else if ( text == "DEL" )
			{
				if ( m_Option != null )
					m_Poller.RemoveOption( m_Option );
			}
			else
			{
				text = UrlToHref( text );

				if ( m_Option == null )
					m_Poller.AddOption( new ShardPollOption( text ) );
				else
					m_Option.Title = text;
			}

			from.SendGump( new ShardPollGump( from, m_Poller, true, null ) );
		}
	}