public PropertyGridManager(PropertyGrid propertyGrid, RuntimeOptions runtimeOptions)
 {
     mRuntimeOptions = runtimeOptions;
     propertyGrid.PropertyValueChanged += new PropertyValueChangedEventHandler(OnPropertyValueChanged);
     mNosDisplayer.DisplayMode = NamedObjectPropertyGridDisplayer.DisplayModes.VariablesOnly;
     mPropertyGrid = propertyGrid;
 }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="element">The ElementRuntime that is selected</param>
        public EntityControlControls(ElementRuntime element, RuntimeOptions runtimeOptions)
        {
            mRuntimeOptions = runtimeOptions;
            InitializeComponent();

            TypeOfAction = ActionType.None;
            unselectedButtonColor = noneButton.BackColor;
            noneButton.BackColor = Color.Red;

            currentElementRuntime = element;

            mPropertyGridManager = new PropertyGridManager(propertyGrid1, runtimeOptions);
        }