예제 #1
0
 public CodeStyleSettingsViewModel(
     ISettingsProvider <CodeStyleSetting> data,
     IWpfTableControlProvider controlProvider,
     ITableManagerProvider tableMangerProvider
     ) : base(data, controlProvider, tableMangerProvider)
 {
 }
예제 #2
0
 public FormattingViewModel(
     ISettingsProvider <FormattingSetting> data,
     IWpfTableControlProvider controlProvider,
     ITableManagerProvider tableMangerProvider
     ) : base(data, controlProvider, tableMangerProvider)
 {
 }
예제 #3
0
 public AnalyzerSettingsViewModel(
     ISettingsProvider <AnalyzerSetting> data,
     IWpfTableControlProvider controlProvider,
     ITableManagerProvider tableMangerProvider
     ) : base(data, controlProvider, tableMangerProvider)
 {
 }
예제 #4
0
        public UnusedReferencesTableProvider(
            ITableManagerProvider tableMangerProvider,
            IWpfTableControlProvider tableControlProvider)
        {
            _tableManager         = tableMangerProvider.GetTableManager(UnusedReferencesDataSource.Name);
            _tableControlProvider = tableControlProvider;

            _dataSource = new UnusedReferencesDataSource();
            _tableManager.AddSource(_dataSource, UnusedReferencesColumnDefinitions.ColumnNames);
        }
 protected SettingsViewModelBase(ISettingsProvider <T> data,
                                 IWpfTableControlProvider controlProvider,
                                 ITableManagerProvider tableMangerProvider)
 {
     _data            = data;
     _controlProvider = controlProvider;
     _data.RegisterViewModel(this);
     _tableManager    = tableMangerProvider.GetTableManager(Identifier);
     _snapshotFactory = CreateSnapshotFactory(_data);
     _ = _tableManager.AddSource(this);
 }
예제 #6
0
        public BindingPaneControl(IServiceProvider serviceProvider, BindingPaneViewModel viewModel)
        {
            IComponentModel          componentModel       = serviceProvider.GetService <SComponentModel, IComponentModel>();
            ITableManagerProvider    tableManagerProvider = componentModel.GetService <ITableManagerProvider>();
            IWpfTableControlProvider tableControlProvider = componentModel.GetService <IWpfTableControlProvider>();

            this.ViewModel       = viewModel;
            this.tableDataSource = new TableDataSource(this.ViewModel.Entries);
            this.tableManager    = tableManagerProvider.GetTableManager(Constants.TableManagerString);
            this.tableManager.AddSource(this.tableDataSource, ColumnNames.DefaultSet.ToArray());
            this.TableControl = tableControlProvider.CreateControl(this.tableManager, true,
                                                                   ColumnNames.DefaultSet.Select(n => new ColumnState2(n, isVisible: true, width: 0)),
                                                                   ColumnNames.DefaultSet.ToArray());

            this.InitializeComponent();

            this.tableHolder.Child = this.TableControl.Control;
        }
예제 #7
0
 public SettingsEditorPane(IVsEditorAdaptersFactoryService vsEditorAdaptersFactoryService,
                           IThreadingContext threadingContext,
                           ISettingsAggregator settingsDataProviderService,
                           IWpfTableControlProvider controlProvider,
                           ITableManagerProvider tableMangerProvider,
                           string fileName,
                           IVsTextLines textBuffer,
                           Workspace workspace)
     : base(null)
 {
     _vsEditorAdaptersFactoryService = vsEditorAdaptersFactoryService;
     _threadingContext            = threadingContext;
     _settingsDataProviderService = settingsDataProviderService;
     _controlProvider             = controlProvider;
     _tableMangerProvider         = tableMangerProvider;
     _fileName   = fileName;
     _textBuffer = textBuffer;
     _workspace  = workspace;
 }
예제 #8
0
 public WhitespaceViewModel(ISettingsProvider <WhitespaceSetting> data,
                            IWpfTableControlProvider controlProvider,
                            ITableManagerProvider tableMangerProvider)
     : base(data, controlProvider, tableMangerProvider)
 {
 }