private void initNameEdit(EventGroupBuilderDTO eventGroupBuilder) { var name = eventGroupBuilder.Name; var nameIsSet = name.IsNullOrEmpty(); btName.Properties.ReadOnly = !nameIsSet; btName.Properties.Buttons[0].Visible = !nameIsSet; }
public ITreeNode MapFrom(EventGroupBuilderDTO eventGroupBuilder) { var node = mapFrom(eventGroupBuilder); var children = eventGroupBuilder.EventGroups.MapAllUsing(this); children.Each(node.AddChild); eventGroupBuilder.Applications.Each(app => node.AddChild(MapFrom(app))); mapAll(eventGroupBuilder.Events).Each(node.AddChild); mapAll(eventGroupBuilder.ChildContainer).Each(node.AddChild); if (eventGroupBuilder.IsAnImplementationOf <ApplicationBuilderDTO>()) { var inputApplication = eventGroupBuilder.DowncastTo <ApplicationBuilderDTO>(); mapAll(inputApplication.Transports).Each(node.AddChild); } return(node); }
public void BindTo(EventGroupBuilderDTO eventGroupBuilderDTO) { initNameEdit(eventGroupBuilderDTO); _screenBinder.BindToSource(eventGroupBuilderDTO); }
private void onPropertySet <T>(EventGroupBuilderDTO eventGroupBuilder, PropertyValueSetEventArgs <T> e) { this.DoWithinExceptionHandler(() => _presenter.SetPropertyValueFromView(e.PropertyName, e.NewValue, e.OldValue)); }