// See RoleSection.cs public override List <Panel> BuildControls(string moviesStarredIn = null) { var actorPanel = new List <Panel>(); var charactersPortrayed = WebControlBuilder.BuildLabelTextBoxPair("lblCharactersPortrayed", "Characters portrayed", "ActorSection", moviesStarredIn, TextBoxMode.MultiLine, rowSpan: 5); actorPanel.Add(WebControlBuilder.BuildPanel(charactersPortrayed.Item1, charactersPortrayed.Item2)); return(actorPanel); }
// See RoleSection.cs public override List <Panel> BuildControls(string moviesProducedContent = null) { var producerPanel = new List <Panel>(); var moviesProduced = WebControlBuilder.BuildLabelTextBoxPair("lblMoviesProduced", "Movies produced", "ProducerSection", moviesProducedContent, TextBoxMode.MultiLine, rowSpan: 5); producerPanel.Add(WebControlBuilder.BuildPanel(moviesProduced.Item1, moviesProduced.Item2)); return(producerPanel); }
// Builds additional web controls for MovieWiki properties public override List <Panel> BuildControls() { var basePanels = base.BuildControls(); var propPanels = new List <Panel>(); var moviesFeatured = WebControlBuilder.BuildLabelTextBoxPair("lblMoviesFeaturedIn", "Movies featured in", "MoviesFeaturedIn", MoviesFeaturedIn, TextBoxMode.MultiLine, rowSpan: 5); var function = WebControlBuilder.BuildLabelTextBoxPair("lblFunction", "Function", "Function", Function); propPanels.Add(WebControlBuilder.BuildPanel(moviesFeatured.Item1, moviesFeatured.Item2)); propPanels.Add(WebControlBuilder.BuildPanel(function.Item1, function.Item2)); basePanels.InsertRange(1, propPanels); return(basePanels); }
// Builds additional web controls for CharacterArticle properties public override List <Panel> BuildControls() { var basePanels = base.BuildControls(); var characterPanels = new List <Panel>(); var moviesAppeared = WebControlBuilder.BuildLabelTextBoxPair("lblMoviesAppearedIn", "Movies appeared in", "MoviesAppearedIn", MoviesAppearedIn, TextBoxMode.MultiLine, rowSpan: 5); var fictionalCharacter = WebControlBuilder.BuildLabelCheckBoxPair("lblIsFictional", "Fictional character?", "IsFictional", IsFictional); characterPanels.Add(WebControlBuilder.BuildPanel(moviesAppeared.Item1, moviesAppeared.Item2)); characterPanels.Add(WebControlBuilder.BuildPanel(fictionalCharacter.Item1, fictionalCharacter.Item2)); // Insert all before the last description textarea basePanels.InsertRange(basePanels.Count - 1, characterPanels); return(basePanels); }
// Builds additional web controls for MokiWIki properties public override List <Panel> BuildControls() { var basePanels = base.BuildControls(); var personPanels = new List <Panel>(); var name = WebControlBuilder.BuildLabelTextBoxPair("lblName", "Full name", "Name", Name); personPanels.Add(WebControlBuilder.BuildPanel(name.Item1, name.Item2)); var age = WebControlBuilder.BuildLabelTextBoxPair("lblAge", "Age", "Age", Age); personPanels.Add(WebControlBuilder.BuildPanel(age.Item1, age.Item2)); basePanels.InsertRange(1, personPanels); return(basePanels); }
// Builds web controls based on the fields Article has public virtual List <Panel> BuildControls() { var panels = new List <Panel>(); var title = WebControlBuilder.BuildLabelTextBoxPair("lblTitle", "Title", "Title", Title); var titleVld = WebControlBuilder.BuildReqFieldValidator("Title", "vldTitle", "Enter a title for the article"); title.Item2.Controls.Add(titleVld); panels.Add(WebControlBuilder.BuildPanel(title.Item1, title.Item2)); var description = WebControlBuilder.BuildLabelTextBoxPair("lblDescription", "Description", "Description", Description, TextBoxMode.MultiLine, 40, 10); panels.Add(WebControlBuilder.BuildPanel(description.Item1, description.Item2)); return(panels); }
// Builds additional web controls with CharacterArticle properties public override List <Panel> BuildControls() { var basePanels = base.BuildControls(); var moviePanels = new List <Panel>(); var theme = WebControlBuilder.BuildLabelTextBoxPair("lblTheme", "Theme", "Theme", Theme); var characters = WebControlBuilder.BuildLabelTextBoxPair("lblCharacters", "Characters", "Characters", Characters, TextBoxMode.MultiLine, rowSpan: 5); var language = WebControlBuilder.BuildLabelTextBoxPair("lblLanguage", "Language", "Language", Language); var duration = WebControlBuilder.BuildLabelTextBoxPair("lblDuration", "Duration", "Duration", Duration); moviePanels.Add(WebControlBuilder.BuildPanel(theme.Item1, theme.Item2)); moviePanels.Add(WebControlBuilder.BuildPanel(characters.Item1, characters.Item2)); moviePanels.Add(WebControlBuilder.BuildPanel(language.Item1, language.Item2)); moviePanels.Add(WebControlBuilder.BuildPanel(duration.Item1, duration.Item2)); // Insert all before the last description textarea basePanels.InsertRange(1, moviePanels); return(basePanels); }