/// <summary>
/// Sends the tool part content to the specified HtmlTextWriter object,
/// which writes the content to be rendered on the client.
/// </summary>
/// <param name="output">The HtmlTextWriter object that receives the tool part content.</param>
protected override void RenderToolPart(System.Web.UI.HtmlTextWriter output)
{
// Establish a reference to the Web Part.
WorkLoadWebPart workLoadWebPart =
(WorkLoadWebPart)this.ParentToolPane.SelectedWebPart;
output.Write("<table width=\"100%\" cellspacing=\"0\" cellpadding=\"2\"><tr><td colspan=\"2\">");
_lblDataHeader.Text = SPUtility.GetLocalizedString("$Resources:webpart_lblDataHeader_text", "company", SPContext.Current.Web.Language);
_lblDataHeader.Font.Bold = true;
_lblDataHeader.RenderControl(output);
output.Write("<hr></td></tr><tr><td>");
_lblObjectType.Text = SPUtility.GetLocalizedString("$Resources:webpart_lblObjectType_text", "company", SPContext.Current.Web.Language);
_lblObjectType.RenderControl(output);
output.Write("</td><td>");
_ddlObjectType.SelectedValue = Enum.GetName(typeof(EnumObjectType), workLoadWebPart.TipoObjeto);
_ddlObjectType.RenderControl(output);
output.Write("</td></tr><tr><td>");
_lblActiveUser.Text = SPUtility.GetLocalizedString("$Resources:webpart_lblActiveUser_text", "company", SPContext.Current.Web.Language);
_lblActiveUser.RenderControl(output);
output.Write("</td><td>");
_chkActiveUser.Checked = workLoadWebPart.UsuarioActivo;
_chkActiveUser.RenderControl(output);
output.Write("</td></tr><tr><td>");
_lblDelimerChar.Text = SPUtility.GetLocalizedString("$Resources:webpart_lblDelimerChar_text", "company", SPContext.Current.Web.Language);
_lblDelimerChar.RenderControl(output);
output.Write("</td><td>");
_txtDelimiterChar.Text = workLoadWebPart.DelimitadorUsurios.ToString();
_txtDelimiterChar.RenderControl(output);
output.Write("</td></tr><tr><td colspan=\"2\">");
_lblVariosHeader.Text = SPUtility.GetLocalizedString("$Resources:webpart_lblVariosHeader_text", "company", SPContext.Current.Web.Language);
_lblVariosHeader.Font.Bold = true;
_lblVariosHeader.RenderControl(output);
output.Write("<hr></td></tr><tr><td>");
_lblBarType.Text = SPUtility.GetLocalizedString("$Resources:webpart_lblBarType_text", "company", SPContext.Current.Web.Language);
_lblBarType.RenderControl(output);
output.Write("</td><td>");
_ddlBarType.SelectedValue = Enum.GetName(typeof(EnumBarType), workLoadWebPart.TipoBarra);
_ddlBarType.RenderControl(output);
output.Write("</td></tr><tr><td>");
_lblShowLabels.Text = SPUtility.GetLocalizedString("$Resources:webpart_lblShowLabels_text", "company", SPContext.Current.Web.Language);
_lblShowLabels.RenderControl(output);
output.Write("</td><td>");
_chkShowLabels.Checked = workLoadWebPart.MostrarEtiquetas;
_chkShowLabels.RenderControl(output);
output.Write("</td></tr><tr><td>");
_lblPlacePecentage.Text = SPUtility.GetLocalizedString("$Resources:webpart_lblPlacePecentage_text", "company", SPContext.Current.Web.Language);
_lblPlacePecentage.RenderControl(output);
output.Write("</td><td>");
_ddlPlacePercentage.SelectedValue = Enum.GetName(typeof(EnumPlacePercentage), workLoadWebPart.UbicacionPorcentaje);
_ddlPlacePercentage.RenderControl(output);
output.Write("</td></tr><tr><td>");
output.Write("</td></tr><tr><td colspan=\"2\">");
_lblSecurityHeader.Text = SPUtility.GetLocalizedString("$Resources:webpart_lblSecurityHeader_text", "company", SPContext.Current.Web.Language);
_lblSecurityHeader.Font.Bold = true;
_lblSecurityHeader.RenderControl(output);
output.Write("<hr></td></tr><tr><td>");
_lblProfiles.Text = SPUtility.GetLocalizedString("$Resources:webpart_lblProfiles_text", "company", SPContext.Current.Web.Language);
_lblProfiles.RenderControl(output);
output.Write("</td><td>");
_ddlProfiles.SelectedValue = workLoadWebPart.PerfilPermitido;
_ddlProfiles.RenderControl(output);
output.Write("</td></tr></table>");
}