Beispiel #1
0
        public Entity Clone()
        {
            Mercury.Server.Application.FormControlEntity serverEntity = new Mercury.Server.Application.FormControlEntity();

            LocalControlToServer(null, serverEntity);

            Entity clone = new Entity(Application, null, serverEntity);

            clone.controlId = Guid.NewGuid();

            return(clone);
        }
Beispiel #2
0
        override public void BaseConstructor(Application applicationReference, Mercury.Client.Core.Forms.Control parentControl, Mercury.Server.Application.FormControl serverControl)
        {
            base.BaseConstructor(applicationReference, parentControl, serverControl);


            Mercury.Server.Application.FormControlEntity serverEntity = (Mercury.Server.Application.FormControlEntity)serverControl;

            entityType = serverEntity.EntityType;

            entityObjectId = serverEntity.EntityObjectId;

            displayAgeFormat = serverEntity.DisplayAgeFormat;

            displayStyle = serverEntity.DisplayStyle;

            allowCustomEntityName = serverEntity.AllowCustomEntityName;

            entityName = serverEntity.EntityName;


            label = new Label(Application, this, serverEntity.Label);

            return;
        }
Beispiel #3
0
        public Entity(Application applicationReference, Mercury.Client.Core.Forms.Control parentControl, Mercury.Server.Application.FormControlEntity serverControl)
        {
            InitializeControl(applicationReference);

            BaseConstructor(applicationReference, parentControl, serverControl);

            ChildServerControlsToLocal(this, serverControl);

            return;
        }