public void OnButtonHit( object sender, Button button )
{
if ( listener != null )
{
if ( button == mOk )
listener.OkDialogClosed( Dialog.Text );
else
listener.YesNoDialogClosed( Dialog.Text, button == mYes );
}
CloseDialog();
if ( ButtonHit != null )
ButtonHit( sender, button );
}