Exemple #1
0
        /// <summary>
        /// Initialiazes the palette model from the Control Manager
        /// </summary>
        /// <param name="cm"></param>
        public void InitializeFromControlManager(ControlManager cm)
        {
            foreach (IControl control in cm.Controls)
            {
                AddPaletteButtonFromControl(control);
            }

            //UpdatePaletteBounds();
        }
        private static ControlManager CreateControlManager()
        {
            lock (_lock)
            {
                _manager = new ControlManager();

                _manager.AddControl(new ButtonControl(), "SelectableButton");
                _manager.AddControl(new LabelControl(), "SelectableLabel");
                _manager.AddControl(new TextBoxControl(), "SelectableTextBox");

                return _manager;
            }
        }