public SettingsEditorControl(ISettingsEditorView whitespaceView, ISettingsEditorView codeStyleView, ISettingsEditorView namingStyleView, ISettingsEditorView analyzerView, Workspace workspace, string filepath, IThreadingContext threadingContext, IVsEditorAdaptersFactoryService editorAdaptersFactoryService, IVsTextLines textLines) { DataContext = this; _workspace = workspace; _filepath = filepath; _threadingContext = threadingContext; _textUpdater = new EditorTextUpdater(editorAdaptersFactoryService, textLines); WhitespaceControl = whitespaceView.SettingControl; CodeStyleControl = codeStyleView.SettingControl; NamingStyleControl = namingStyleView.SettingControl; AnalyzersControl = analyzerView.SettingControl; _views = new[] { whitespaceView, codeStyleView, namingStyleView, analyzerView }; _tableControls = _views.SelectAsArray(view => view.TableControl).ToArray(); InitializeComponent(); }
public SettingsEditorControl(ISettingsEditorView whitespaceView, ISettingsEditorView codeStyleView, ISettingsEditorView analyzerView, Workspace workspace, string filepath, IThreadingContext threadingContext, IVsEditorAdaptersFactoryService editorAdaptersFactoryService, IVsTextLines textLines) { DataContext = this; _workspace = workspace; _filepath = filepath; _threadingContext = threadingContext; _textUpdater = new EditorTextUpdater(editorAdaptersFactoryService, textLines); _whitespaceView = whitespaceView; _codeStyleView = codeStyleView; _analyzerView = analyzerView; InitializeComponent(); }
public SettingsEditorControl(ISettingsEditorView formattingView, ISettingsEditorView codeStyleView, ISettingsEditorView analyzerSettingsView, Workspace workspace, string filepath, IThreadingContext threadingContext, IVsEditorAdaptersFactoryService editorAdaptersFactoryService, IVsTextLines textLines) { InitializeComponent(); DataContext = this; _workspace = workspace; _filepath = filepath; _threadingContext = threadingContext; _textUpdater = new EditorTextUpdater(editorAdaptersFactoryService, textLines); _formattingView = formattingView; FormattingTab.Content = _formattingView.SettingControl; _codeStyleView = codeStyleView; CodeStyleTab.Content = _codeStyleView.SettingControl; _analyzerSettingsView = analyzerSettingsView; AnalyzersTab.Content = _analyzerSettingsView.SettingControl; }