Exemple #1
0
        internal void AddForm(ControlBase control)
        {
            m_form = (FormControl)control;
            m_form.Root = this;
            m_size = m_form.Rect.Size;

            m_bModify = true;
        }
Exemple #2
0
        public static ControlBase CreateControl(ControlType type)
        {
            ControlBase newControl = null;
            switch (type)
            {
                case ControlType.Form:
                    newControl = new FormControl();
                    break;
                case ControlType.Panel:
                    newControl = new PanelControl();
                    break;
                case ControlType.Label:
                    newControl = new LabelControl();
                    break;
                case ControlType.Button:
                    newControl = new ButtonControl();
                    break;
            }

            return newControl;
        }