コード例 #1
0
 public PropertyGridManager(PropertyGrid propertyGrid, RuntimeOptions runtimeOptions)
 {
     mRuntimeOptions = runtimeOptions;
     propertyGrid.PropertyValueChanged += new PropertyValueChangedEventHandler(OnPropertyValueChanged);
     mNosDisplayer.DisplayMode = NamedObjectPropertyGridDisplayer.DisplayModes.VariablesOnly;
     mPropertyGrid = propertyGrid;
 }
コード例 #2
0
        /// <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);
        }