public ITTF_TrainStationForm() { InitializeComponent(); processor = new TrainStationProcessor(ServerLbl); try { string name = Environment.MachineName + "[" + processor.GetMyIP() + "]"; tbWhoAmI.Text = processor.ConnectMe(ObjectType.Station, name).ToString(); this.Text += "\"" + name + "\""; } catch (Exception ex) { MessageBox.Show("Startup error: ", ex.Message); processor.Dispose(); Application.Exit(); } ControlWriter consoleWriter = new ControlWriter(messagesBox); Console.SetOut(consoleWriter); }
public FormTemplate(FormModel model, ControlWriter controlWriter, IApplicationEventDispatcher eventDispatcher) { Model = model; ControlWriter = controlWriter; eventDispatcher.Publish(new AngularImportDependencyRequiredEvent( moduleId: Model.Module.Id, dependency: "ReactiveFormsModule", import: "import { ReactiveFormsModule } from '@angular/forms';")); eventDispatcher.Publish(new AngularImportDependencyRequiredEvent( moduleId: Model.Module.Id, dependency: "FormsModule", import: "import { FormsModule } from '@angular/forms';")); if (Model.FormFields.Any(x => x.TypeReference.Element.Name == "Datepicker")) { eventDispatcher.Publish(new AngularImportDependencyRequiredEvent( moduleId: Model.Module.Id, dependency: "BsDatepickerModule.forRoot()", import: "import { BsDatepickerModule } from 'ngx-bootstrap/datepicker';")); } if (Model.FormFields.Any(x => x.TypeReference.Element.Name == "Select" || x.TypeReference.Element.Name == "Multi-Select")) { //eventDispatcher.Publish(new AngularImportDependencyRequiredEvent( // moduleId: Model.Module.Id, // dependency: "NgxSelectModule", // import: "import { NgxSelectModule } from 'ngx-select-ex';")); //eventDispatcher.Publish(new CliInstallationRequest("ngx-select-ex", "3", "--save")); eventDispatcher.Publish(new AngularImportDependencyRequiredEvent( moduleId: Model.Module.Id, dependency: "MatSelectModule", import: "import { MatSelectModule } from '@angular/material/select';")); eventDispatcher.Publish(new CliInstallationRequest("@angular/material", "ng add @angular/material")); } }
public void RegisterControls(ControlWriter controlWriter) { controlWriter.RegisterControl(SectionModel.SpecializationTypeId, control => new SectionTemplate(new SectionModel(control), controlWriter)); controlWriter.RegisterControl(ButtonControlModel.SpecializationTypeId, control => new ButtonControlTemplate(new ButtonControlModel(control))); controlWriter.RegisterControl(TableControlModel.SpecializationTypeId, control => new TableControlTemplate(new TableControlModel(control))); controlWriter.RegisterControl(PaginationControlModel.SpecializationTypeId, control => new PaginationControlTemplate(new PaginationControlModel(control), Template.ExecutionContext.EventDispatcher)); controlWriter.RegisterControl(FormModel.SpecializationTypeId, control => new FormTemplate(new FormModel(control), controlWriter, Template.ExecutionContext.EventDispatcher)); controlWriter.RegisterControl(NavbarModel.SpecializationTypeId, control => new NavbarTemplate(new NavbarModel(control), (IApplication)Template.ExecutionContext, controlWriter)); }
private void Grid_Loaded(object sender, System.Windows.RoutedEventArgs e) { ControlWriter tw = new ControlWriter(tb_message); Thread Request = new Thread(RequestData); Thread Process = new Thread(ProcessData); Request.Start(); Process.Start(); }
public NavbarTemplate(NavbarModel model, IApplication application, ControlWriter controlWriter) { Model = model; Application = application; ControlWriter = controlWriter; application.EventDispatcher.Publish(new AngularImportDependencyRequiredEvent( moduleId: "AppModule", dependency: "CollapseModule.forRoot()", import: "import { CollapseModule } from 'ngx-bootstrap/collapse';")); }
/// <summary> /// Create the template output /// </summary> public override string TransformText() { this.Write("<div class=\"row\" intent-id=\""); #line 7 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Section\SectionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(Model.Name)); #line default #line hidden this.Write("\">\r\n <div class=\"col\" intent-manage>\r\n"); #line 9 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Section\SectionTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(ControlWriter.WriteControls(Model.InternalElement.ChildElements, " "))); #line default #line hidden this.Write("\r\n </div>\r\n</div>\r\n"); return(this.GenerationEnvironment.ToString()); }
public AngularComponentHtmlTemplate(IOutputTarget outputTarget, Intent.Modelers.WebClient.Angular.Api.ComponentModel model) : base(TemplateId, outputTarget, model) { ControlWriter = new ControlWriter(); ControlWriter.RegisterControl(DisplayComponentModel.SpecializationTypeId, element => new DisplayComponentTemplate(new DisplayComponentModel(element), this)); ControlWriter.RegisterControl(RouterOutletModel.SpecializationTypeId, element => new RouterOutletTemplate(new RouterOutletModel(element))); }
public SectionTemplate(SectionModel model, ControlWriter controlWriter) { Model = model; ControlWriter = controlWriter; }
private void Window_Loaded(object sender, RoutedEventArgs e) { ControlWriter writer = new ControlWriter(tb_status); }
/// <summary> /// Create the template output /// </summary> public override string TransformText() { this.Write("<form [formGroup]=\""); #line 8 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(Model.DataModelPath)); #line default #line hidden this.Write("\" intent-manage intent-id=\""); #line 8 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(Model.Name.Replace(" ", "").ToKebabCase())); #line default #line hidden this.Write("\">\r\n"); #line 9 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" foreach (var field in Model.FormFields) { #line default #line hidden #line 10 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" if (field.TypeReference.Element.Name == "Text Input") { #line default #line hidden this.Write(" <div class=\"form-group\" intent-id=\""); #line 11 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(field.Id)); #line default #line hidden this.Write("\">\r\n <label for=\""); #line 12 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(field.DataModelPath)); #line default #line hidden this.Write("\">"); #line 12 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(field.Name)); #line default #line hidden this.Write("</label>\r\n <input id=\""); #line 13 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(field.DataModelPath)); #line default #line hidden this.Write("\" class=\"form-control\" formControlName=\""); #line 13 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(field.DataModelPath)); #line default #line hidden this.Write("\" type=\"text\" />\r\n </div>\r\n"); #line 15 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" } else if (field.TypeReference.Element.Name == "Checkbox") { #line default #line hidden this.Write(" <div class=\"form-check\" intent-id=\""); #line 16 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(field.Id)); #line default #line hidden this.Write("\">\r\n <input id=\""); #line 17 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(field.DataModelPath)); #line default #line hidden this.Write("\" class=\"form-check-input\" formControlName=\""); #line 17 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(field.DataModelPath)); #line default #line hidden this.Write("\" type=\"checkbox\" />\r\n <label for=\""); #line 18 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(field.DataModelPath)); #line default #line hidden this.Write("\" class=\"form-check-label\">"); #line 18 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(field.Name)); #line default #line hidden this.Write("</label>\r\n </div>\r\n"); #line 20 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" } else if (field.TypeReference.Element.Name == "Datepicker") { #line default #line hidden this.Write(" <div class=\"form-group\" intent-id=\""); #line 21 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(field.Id)); #line default #line hidden this.Write("\">\r\n <label for=\""); #line 22 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(field.DataModelPath)); #line default #line hidden this.Write("\">"); #line 22 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(field.Name)); #line default #line hidden this.Write("</label>\r\n <input id=\""); #line 23 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(field.DataModelPath)); #line default #line hidden this.Write("\" class=\"form-control\" formControlName=\""); #line 23 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(field.DataModelPath)); #line default #line hidden this.Write("\" type=\"text\" bsDatepicker=\"\" />\r\n </div>\r\n"); #line 25 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" } else if (field.TypeReference.Element.Name == "Select") { #line default #line hidden this.Write(" <div class=\"form-group\" intent-id=\""); #line 26 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(field.Id)); #line default #line hidden this.Write("\">\r\n <label for=\""); #line 27 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(field.DataModelPath)); #line default #line hidden this.Write("\">"); #line 27 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(field.Name)); #line default #line hidden this.Write("</label>\r\n <mat-select id=\""); #line 28 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(field.DataModelPath)); #line default #line hidden this.Write("\" class=\"form-control\" formControlName=\""); #line 28 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(field.DataModelPath)); #line default #line hidden this.Write("\" type=\"text\">\r\n <mat-option *ngFor=\"let option of "); #line 29 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetSelectItemsModel(field))); #line default #line hidden this.Write("\" [value]=\"option."); #line 29 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetSelectValueField(field))); #line default #line hidden this.Write("\">\r\n {{ option."); #line 30 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetSelectTextField(field))); #line default #line hidden this.Write(" }}\r\n </mat-option>\r\n </mat-select>\r\n </div>\r\n"); #line 34 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" } else if (field.TypeReference.Element.Name == "Multi-Select") { #line default #line hidden this.Write(" <div class=\"form-group\" intent-id=\""); #line 35 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(field.Id)); #line default #line hidden this.Write("\">\r\n <label for=\""); #line 36 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(field.DataModelPath)); #line default #line hidden this.Write("\">"); #line 36 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(field.Name)); #line default #line hidden this.Write("</label>\r\n <mat-select id=\""); #line 37 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(field.DataModelPath)); #line default #line hidden this.Write("\" class=\"form-control\" formControlName=\""); #line 37 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(field.DataModelPath)); #line default #line hidden this.Write("\" type=\"text\" multiple=\"\">\r\n <mat-option *ngFor=\"let option of "); #line 38 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetSelectItemsModel(field))); #line default #line hidden this.Write("\" [value]=\"option."); #line 38 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetSelectValueField(field))); #line default #line hidden this.Write("\">\r\n {{ option."); #line 39 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(GetSelectTextField(field))); #line default #line hidden this.Write(" }}\r\n </mat-option>\r\n </mat-select>\r\n </div>\r\n"); #line 43 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" } else if (field.TypeReference.Element.Name == "Custom") { #line default #line hidden this.Write(" <div class=\"form-group\" intent-id=\""); #line 44 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(field.Id)); #line default #line hidden this.Write("\" intent-ignore>\r\n <label for=\""); #line 45 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(field.DataModelPath)); #line default #line hidden this.Write("\">"); #line 45 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(field.Name)); #line default #line hidden this.Write("</label>\r\n <input id=\""); #line 46 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(field.DataModelPath)); #line default #line hidden this.Write("\" class=\"form-control\" formControlName=\""); #line 46 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(field.DataModelPath)); #line default #line hidden this.Write("\" type=\"text\" />\r\n </div>\r\n"); #line 48 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" } #line default #line hidden #line 49 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" } #line default #line hidden #line 50 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Form\FormTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(ControlWriter.WriteControls(Model.Sections.Select(x => x.InternalElement), " "))); #line default #line hidden this.Write("\r\n</form>\r\n"); return(this.GenerationEnvironment.ToString()); }
public void RegisterControls(ControlWriter controlWriter) { controlWriter.RegisterControl(LoginMenuModel.SpecializationTypeId, control => new LoginMenuTemplate(new LoginMenuModel(control))); }
/// <summary> /// Create the template output /// </summary> public override string TransformText() { this.Write("<nav class=\"navbar navbar-expand-lg navbar-light bg-light\" role=\"navigation\" inte" + "nt-manage=\"\" intent-id=\""); #line 8 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Navbar\NavbarTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(Model.Id)); #line default #line hidden this.Write("\">\r\n <div class=\"navbar-header\">\r\n <a class=\"navbar-brand\" href=\"#\"><span>"); #line 10 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Navbar\NavbarTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(Application.Name)); #line default #line hidden this.Write(@"</span></a> </div> <button class=""navbar-toggler"" type=""button"" (click)=""isCollapsed = !isCollapsed"" aria-controls=""navbarNav"" aria-expanded=""false"" aria-label=""Toggle navigation""> <span class=""navbar-toggler-icon""></span> </button> <div class=""collapse navbar-collapse"" [collapse]=""isCollapsed""> <ul class=""nav navbar-nav"" intent-manage="""" intent-id=""navbar-nav""> "); #line 17 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Navbar\NavbarTemplate.tt" foreach (var navItem in Model.InternalElement.ChildElements.OrderBy(x => x.Order)) { #line default #line hidden #line 18 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Navbar\NavbarTemplate.tt" if (navItem.IsLink()) { var linkModel = navItem.AsLinkModel(); #line default #line hidden this.Write(" <li class=\"nav-item\" intent-id=\""); #line 20 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Navbar\NavbarTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(navItem.Id)); #line default #line hidden this.Write("\">\r\n <a class=\"nav-link\" routerLink=\""); #line 21 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Navbar\NavbarTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(linkModel.GetLinkSettings().RouterLink())); #line default #line hidden this.Write("\" routerLinkActive=\"active\">\r\n <span class=\"glyphicon glyphicon-th-list\"" + " aria-hidden=\"true\"></span>\r\n <span>"); #line 23 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Navbar\NavbarTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(linkModel.Name)); #line default #line hidden this.Write("</span>\r\n </a>\r\n </li>\r\n"); #line 26 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Navbar\NavbarTemplate.tt" } #line default #line hidden #line 27 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Navbar\NavbarTemplate.tt" else if (navItem.IsDropdown()) { var dropdownModel = navItem.AsIsDropdownModel(); #line default #line hidden this.Write(" <li class=\"dropdown nav-item\" dropdown intent-id=\""); #line 29 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Navbar\NavbarTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(navItem.Id)); #line default #line hidden this.Write("\">\r\n <a class=\"nav-link dropdown-toggle\" data-toggle=\"dropdown\" role=\"butt" + "on\" aria-haspopup=\"true\" aria-expanded=\"false\" dropdownToggle>"); #line 30 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Navbar\NavbarTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(dropdownModel.Name)); #line default #line hidden this.Write("<span class=\"caret\"></span>\r\n </a>\r\n <div class=\"dropdown-menu\" *dr" + "opdownMenu>\r\n"); #line 33 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Navbar\NavbarTemplate.tt" foreach (var linkModel in dropdownModel.Links) { #line default #line hidden this.Write(" <a class=\"dropdown-item\" routerLink=\""); #line 34 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Navbar\NavbarTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(linkModel.GetLinkSettings().RouterLink())); #line default #line hidden this.Write("\"><span class=\"glyphicon glyphicon-search\" aria-hidden=\"true\"></span><span> "); #line 34 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Navbar\NavbarTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(linkModel.Name)); #line default #line hidden this.Write("</span></a>\r\n"); #line 35 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Navbar\NavbarTemplate.tt" } #line default #line hidden this.Write(" </div>\r\n </li>\r\n"); #line 38 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Navbar\NavbarTemplate.tt" } #line default #line hidden #line 39 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Navbar\NavbarTemplate.tt" else { #line default #line hidden this.Write(" <li class=\"nav-item\" intent-id=\""); #line 40 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Navbar\NavbarTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(navItem.Id)); #line default #line hidden this.Write("\">\r\n"); #line 41 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Navbar\NavbarTemplate.tt" this.Write(this.ToStringHelper.ToStringWithCulture(ControlWriter.WriteControl(navItem, " "))); #line default #line hidden this.Write("\r\n </li>\r\n"); #line 43 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Navbar\NavbarTemplate.tt" } #line default #line hidden #line 44 "C:\Dev\Intent.Modules.Web\Intent.Modules.Angular.Layout\Decorators\Controls\Navbar\NavbarTemplate.tt" } #line default #line hidden this.Write(" </ul>\r\n </div>\r\n</nav>"); return(this.GenerationEnvironment.ToString()); }