Ejemplo n.º 1
0
		public PopupMenu(string cssClass, string highlightedItemCssClass)
		{
			container = (DivElement) Document.CreateElement("DIV");
			container.ClassName = cssClass == null ? "PopupMenu" : cssClass;
			this.highlightedItemCssClass = highlightedItemCssClass == null ? "PopupMenuHighlightedItem" : highlightedItemCssClass;
			container.Style.Display = "none";
			Document.Body.AppendChild(container);
		}
		public Controller(View view)
		{
			this.view = view;

			threadCommentsProvider = new ThreadCommentsProvider(commentsPerPage);
			threadCommentsProvider.CommentsAnchorName = (string)view.uiCommentsAnchor.GetAttribute("name");
			threadCommentsProvider.OnLoaded = new EventHandler(display);

			hideCommentsPanelServerSide();

			uiCommentsCount = (DivElement)Document.CreateElement("center");
			view.uiCommentsPanelClientSide.AppendChild(uiCommentsCount);

			uiPaging1Div = (DivElement)Document.CreateElement("div");
			uiPaging1Div.Style.TextAlign = "right";
			view.uiCommentsPanelClientSide.AppendChild(uiPaging1Div);
			uiCommentsDiv = (DivElement)Document.CreateElement("div");
			view.uiCommentsPanelClientSide.AppendChild(uiCommentsDiv);
			uiPaging2Div = (DivElement)Document.CreateElement("div");
			uiPaging2Div.Style.TextAlign = "right";
			view.uiCommentsPanelClientSide.AppendChild(uiPaging2Div);
		}
Ejemplo n.º 3
0
 public TextPreviewer(string textElementId, string divElementId)
 {
     _text = Document.GetElementById(textElementId).As<TextElement>();
     _div = Document.GetElementById(divElementId).As<DivElement>();
 }