Esempio n. 1
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.FormControlCollection serverCollection = (Mercury.Server.Application.FormControlCollection)serverControl;

            collectionType = serverCollection.CollectionType;


            if (serverCollection.Label != null)
            {
                label = new Label(Application, this, serverCollection.Label);
            }


            items.Clear();

            items.AddRange(serverCollection.Items);

            SelectedItem = serverCollection.SelectedItem;

            return;
        }
Esempio n. 2
0
        public Collection(Application applicationReference, Mercury.Client.Core.Forms.Control parentControl, Mercury.Server.Application.FormControlCollection serverControl)
        {
            BaseConstructor(applicationReference, parentControl, serverControl);

            InitializeControl(applicationReference);

            ChildServerControlsToLocal(this, serverControl);

            return;
        }