Esempio n. 1
0
        public Instrumental.Schema.PanelSchema GetSchema()
        {
            // ensure our schema has all of the UI controls
            Schema.ControlSchema[] controlSchema = new Schema.ControlSchema[uiControls.Count];

            int i = 0;

            foreach (UIControl control in uiControls.Values)
            {
                controlSchema[i] = control.GetSchema();
                i++;
            }

            panelSchema.Controls = controlSchema;

            return(panelSchema);
        }
Esempio n. 2
0
 /// <summary>Call this when instantiating a control from schema values.</summary>
 /// <param name="controlSchema">Schema to reference when initializing.</param>
 public abstract void SetSchema(Schema.ControlSchema controlSchema);