/// <summary> /// Renders the content of the qwerty keyboard. /// </summary> /// <param name="writer">The writer.</param> protected void RenderQwertyContent(HtmlTextWriter writer) { writer.RenderBeginTag(HtmlTextWriterTag.Div); { RenderDigit(writer, "`", "~"); RenderDigit(writer, "1", "!"); RenderDigit(writer, "2", "@"); RenderDigit(writer, "3", "#"); RenderDigit(writer, "4", "$"); RenderDigit(writer, "5", "%"); RenderDigit(writer, "6", "^"); RenderDigit(writer, "7", "&"); RenderDigit(writer, "8", "*"); RenderDigit(writer, "9", "("); RenderDigit(writer, "0", ")"); RenderDigit(writer, "-", "_"); RenderDigit(writer, "=", "+"); RenderCommand(writer, "backspace", "<i class='fa fa-arrow-left'></i>", "key-2x"); } writer.RenderEndTag(); writer.RenderBeginTag(HtmlTextWriterTag.Div); { RenderCommand(writer, "tab", "Tab", "key-1halfx"); RenderDigit(writer, "q", "Q"); RenderDigit(writer, "w", "W"); RenderDigit(writer, "e", "E"); RenderDigit(writer, "r", "R"); RenderDigit(writer, "t", "T"); RenderDigit(writer, "y", "Y"); RenderDigit(writer, "u", "U"); RenderDigit(writer, "i", "I"); RenderDigit(writer, "o", "O"); RenderDigit(writer, "p", "P"); RenderDigit(writer, "[", "{"); RenderDigit(writer, "]", "}"); RenderDigit(writer, "\\", "|", "key-1halfx"); } writer.RenderEndTag(); writer.RenderBeginTag(HtmlTextWriterTag.Div); { RenderCommand(writer, "caps", "Caps", "key-2x"); RenderDigit(writer, "a", "A"); RenderDigit(writer, "s", "S"); RenderDigit(writer, "d", "D"); RenderDigit(writer, "f", "F"); RenderDigit(writer, "g", "G"); RenderDigit(writer, "h", "H"); RenderDigit(writer, "j", "J"); RenderDigit(writer, "k", "K"); RenderDigit(writer, "l", "L"); RenderDigit(writer, ";", ":"); RenderDigit(writer, "'", "\""); RenderCommand(writer, "enter", EnterHtmlContent != string.Empty ? EnterHtmlContent : EnterText.EncodeHtml(), "key-2x", EnterKeyCssClass); } writer.RenderEndTag(); writer.RenderBeginTag(HtmlTextWriterTag.Div); { RenderCommand(writer, "shift", "Shift", "key-2halfx"); RenderDigit(writer, "z", "Z"); RenderDigit(writer, "x", "X"); RenderDigit(writer, "c", "C"); RenderDigit(writer, "v", "V"); RenderDigit(writer, "b", "B"); RenderDigit(writer, "n", "N"); RenderDigit(writer, "m", "M"); RenderDigit(writer, ",", "<"); RenderDigit(writer, ".", ">"); RenderDigit(writer, "/", "?"); RenderCommand(writer, "shift", "Shift", "key-2halfx"); } writer.RenderEndTag(); writer.RenderBeginTag(HtmlTextWriterTag.Div); { RenderDigit(writer, " ", " ", "key-7x"); } writer.RenderEndTag(); }
/// <summary> /// Renders the content of the key pad ( /// </summary> /// <param name="writer">The writer.</param> /// <param name="isTenKey">if set to <c>true</c> [is ten key].</param> protected void RenderPadContent(HtmlTextWriter writer, bool isTenKey) { writer.RenderBeginTag(HtmlTextWriterTag.Div); { RenderDigit(writer, "1", "1"); RenderDigit(writer, "2", "2"); RenderDigit(writer, "3", "3"); } writer.RenderEndTag(); writer.RenderBeginTag(HtmlTextWriterTag.Div); { RenderDigit(writer, "4", "4"); RenderDigit(writer, "5", "5"); RenderDigit(writer, "6", "6"); } writer.RenderEndTag(); writer.RenderBeginTag(HtmlTextWriterTag.Div); { RenderDigit(writer, "7", "7"); RenderDigit(writer, "8", "8"); RenderDigit(writer, "9", "9"); } writer.RenderEndTag(); writer.RenderBeginTag(HtmlTextWriterTag.Div); { if (isTenKey) { RenderCommand(writer, "clear", "Clear"); } else { RenderDigit(writer, ".", "."); } RenderDigit(writer, "0", "0"); if (isTenKey) { RenderCommand(writer, "backspace", "<i class='fa fa-backspace'></i>"); } else { RenderCommand(writer, "clear", "<i class='fa fa-times'></i>"); } } writer.RenderEndTag(); if (ShowNumberPadEnter) { writer.RenderBeginTag(HtmlTextWriterTag.Div); { RenderCommand(writer, "enter", EnterHtmlContent != string.Empty ? EnterHtmlContent : EnterText.EncodeHtml(), "key-3x", EnterKeyCssClass); } } }