Esempio n. 1
0
        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);
        }
Esempio n. 3
0
 public void BindTo(EventGroupBuilderDTO eventGroupBuilderDTO)
 {
     initNameEdit(eventGroupBuilderDTO);
     _screenBinder.BindToSource(eventGroupBuilderDTO);
 }
Esempio n. 4
0
 private void onPropertySet <T>(EventGroupBuilderDTO eventGroupBuilder, PropertyValueSetEventArgs <T> e)
 {
     this.DoWithinExceptionHandler(() => _presenter.SetPropertyValueFromView(e.PropertyName, e.NewValue, e.OldValue));
 }