Example #1
0
        protected override void BaseConstructor(Application applicationReference)
        {
            style = new Mercury.Client.Core.Forms.Structures.Style(this);

            base.BaseConstructor(applicationReference);

            return;
        }
Example #2
0
        virtual public void BaseConstructor(Mercury.Client.Core.Forms.Control parentControl, Server.Application.FormControl serverControl)
        {
            base.BaseConstructor(application, serverControl);


            controlId = serverControl.ControlId;

            controlType = serverControl.ControlType;

            tabIndex = serverControl.TabIndex;

            enabled = serverControl.Enabled;

            visible = serverControl.Visible;

            readOnly = serverControl.ReadOnly;

            required = serverControl.Required;

            position = serverControl.Position;

            capabilities = serverControl.Capabilities;



            eventHandlers = serverControl.EventHandlers;

            if (eventHandlers == null)
            {
                eventHandlers = new ObservableCollection <Mercury.Server.Application.FormControlEventHandler> ();
            }


            if (serverControl.Style != null)
            {
                style = new Mercury.Client.Core.Forms.Structures.Style(this, serverControl.Style);
            }

            else if (style == null)
            {
                style = new Mercury.Client.Core.Forms.Structures.Style(this);
            }


            dataBindings = serverControl.DataBindings;


            parent = parentControl;

            return;
        }