public override string ToScript()
{
if (this.currentConfig != null && this.currentConfig.Icon != Icon.None)
{
if (ResourceManager.HasResourceManager)
{
ResourceManager.GetInstance().RegisterIcon(this.currentConfig.Icon);
}
}
return this.currentConfig != null ? this.InstanceOf.ConcatWith(".show(", TokenUtils.ParseTokens(this.currentConfig.ToScript(), this.Page), ");") : "";
}