Пример #1
0
        public PropertyPad()
        {
            frame = new InvisibleFrame();

#if MAC
            isNative = true;

            if (isNative)
            {
                nativeGrid   = new MacPropertyGrid();
                propertyGrid = nativeGrid;
                nativeGrid.PropertyGridChanged += Grid_Changed;
                gtkWidget = new GtkNSViewHost(nativeGrid);

                frame.Add(gtkWidget);
            }
            else
            {
#endif
            grid          = new pg.PropertyGrid();
            propertyGrid  = grid;
            grid.Changed += Grid_Changed;
            frame.Add(grid);
#if MAC
        }
#endif
            frame.ShowAll();
        }
Пример #2
0
        public PropertyPad()
        {
            frame = new InvisibleFrame();

#if MAC
            isNative = FeatureSwitchService.IsFeatureEnabled("NativePropertyPanel") ?? false;

            if (isNative)
            {
                nativeGrid   = new MacPropertyGrid();
                propertyGrid = nativeGrid;

                gtkWidget           = Components.Mac.GtkMacInterop.NSViewToGtkWidget(nativeGrid);
                gtkWidget.CanFocus  = true;
                gtkWidget.Sensitive = true;
                gtkWidget.Focused  += Widget_Focused;

                nativeGrid.Focused += PropertyGrid_Focused;
                frame.Add(gtkWidget);
            }
            else
            {
#endif
            grid          = new pg.PropertyGrid();
            propertyGrid  = grid;
            grid.Changed += Grid_Changed;
            frame.Add(grid);
#if MAC
        }
#endif
            frame.ShowAll();
        }
Пример #3
0
        public ExecutionResultViewModel(bool isTestRun)
        {
            Result     = new ObservableCollection <JobOutput>();
            _isTestRun = isTestRun;

            // Display the property info tool if not visible yet
            var shell        = IoC.Get <IShell>();
            var propertyTool = shell.Tools.FirstOrDefault(t => t is IPropertyGrid);

            if (propertyTool == null || (propertyTool != null && !propertyTool.IsVisible))
            {
                if (propertyTool == null)
                {
                    propertyTool = IoC.Get <IPropertyGrid>();
                }

                _shouldClosePropertyGridOnDeactivate = true;
                shell.ShowTool(propertyTool);
            }

            _inspectorTool = (IPropertyGrid)propertyTool;
            _output        = IoC.Get <IOutput>();
        }
Пример #4
0
 public ExplorerView()
 {
     InitializeComponent();
     _propertyGrid = IoC.Get <IPropertyGrid>();
 }
Пример #5
0
 public PropertyGridView(IPropertyGrid pg)
 {
     PropertyGrid = pg ?? new PropertyGrid();
     DataContext  = PropertyGrid;
 }
Пример #6
0
		public PropertyGridView(IPropertyGrid pg)
		{
			PropertyGrid = pg??new PropertyGrid();
			DataContext = PropertyGrid;
		}
Пример #7
0
		public EditorViewModel(IPropertyGrid propertyGrid, IExtendedShell extendedShell)
		{
			_extendedShell = extendedShell;
			_propertyGrid = propertyGrid;
		}
Пример #8
0
 public EditorProvider(IPropertyGrid propertyGrid, IExtendedShell extendedShell)
 {
     _propertyGrid  = propertyGrid;
     _extendedShell = extendedShell;
 }
Пример #9
0
 public EditorViewModel(IPropertyGrid propertyGrid, IExtendedShell extendedShell)
 {
     _extendedShell = extendedShell;
     _propertyGrid  = propertyGrid;
 }
Пример #10
0
		public EditorProvider(IPropertyGrid propertyGrid, IExtendedShell extendedShell)
		{
			_propertyGrid = propertyGrid;
			_extendedShell = extendedShell;
		}