Пример #1
0
 public FRPropertyGrid()
 {
     DrawFlatToolbar = true;
     PropertySort    = PropertySort.Alphabetical;
     PropertyTabs.RemoveTabType(typeof(PropertiesTab));
     PropertyTabs.AddTabType(typeof(FRPropertiesTab));
 }
Пример #2
0
        /// <summary>
        /// Use this constructor if you already have an ServiceProvider infrastructure
        /// </summary>
        /// <param name="serviceProvider">a ServiceProvider</param>
        public PropertyGridEx(IServiceProvider serviceProvider)
        {
            DrawFlat = true;
            // add the RawPage now and for ever (static)
            PropertyTabs.AddTabType(typeof(RawMemberTab), PropertyTabScope.Static);

            SetServiceProvider(serviceProvider);
        }
Пример #3
0
 public void ShowEvents(bool show)
 {
     if (show)
     {
         PropertyTabs.AddTabType(typeof(EventsTab));
     }
     ShowEventsButton(show);
 }
Пример #4
0
 internal void BindObj(IComponent ctrl)
 {
     _ctrls.Clear();
     _ctrls.Add(ctrl);
     PropertyTabs.AddTabType(typeof(EventsTab), PropertyTabScope.Document);
     ShowEventsButton(true);
     this.SelectedObject = ctrl;
 }
Пример #5
0
        protected override void OnCreateControl()
        {
            DrawFlatToolbar = true;
            HelpVisible     = true;

            PropertySort = PropertySort.Alphabetical;

            InitContextMenu();

            ContextMenuStrip          = _contextMenu;
            _goBackOneItem.Enabled    = false;
            _goForwardOneItem.Enabled = false;

            base.OnCreateControl();

            // Add New Tabs here
            PropertyTabs.AddTabType(typeof(AllPropertiesTab));
            PropertyTabs.AddTabType(typeof(AllFieldsTab));
            PropertyTabs.AddTabType(typeof(InstanceEventsTab));
            PropertyTabs.AddTabType(typeof(MethodsTab));
            PropertyTabs.AddTabType(typeof(ProcessInfoTab));

            _historyObjects.Clear();
        }