Skip to content

Commit 8a1f271

Browse files
committed
I think I had too much com visible
1 parent da7468a commit 8a1f271

7 files changed

+17
-20
lines changed

RetailCoder.VBE/UI/Settings/CodeInspectionControl.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

RetailCoder.VBE/UI/Settings/CodeInspectionControl.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,17 @@
1111

1212
namespace Rubberduck.UI.Settings
1313
{
14-
[System.Runtime.InteropServices.ComVisible(true)]
15-
public partial class _CodeInspectionControl : UserControl
14+
public partial class CodeInspectionControl : UserControl
1615
{
1716
private BindingList<CodeInspection> _inspections;
1817

1918
/// <summary> Parameterless Constructor is to enable design view only. DO NOT USE. </summary>
20-
public _CodeInspectionControl()
19+
public CodeInspectionControl()
2120
{
2221
InitializeComponent();
2322
}
2423

25-
public _CodeInspectionControl(List<CodeInspection> inspections)
24+
public CodeInspectionControl(List<CodeInspection> inspections)
2625
: this()
2726
{
2827
_inspections = new BindingList<CodeInspection>(inspections

RetailCoder.VBE/UI/Settings/ConfigurationTreeView.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

RetailCoder.VBE/UI/Settings/ConfigurationTreeView.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,18 @@
1111

1212
namespace Rubberduck.UI.Settings
1313
{
14-
[System.Runtime.InteropServices.ComVisible(true)]
15-
public partial class _ConfigurationTreeViewControl : UserControl
14+
public partial class ConfigurationTreeViewControl : UserControl
1615
{
1716

1817
private Configuration _config;
1918

2019
/// <summary> Parameterless Constructor is to enable design view only. DO NOT USE. </summary>
21-
public _ConfigurationTreeViewControl()
20+
public ConfigurationTreeViewControl()
2221
{
2322
InitializeComponent();
2423
}
2524

26-
public _ConfigurationTreeViewControl(Configuration config) : this()
25+
public ConfigurationTreeViewControl(Configuration config) : this()
2726
{
2827
_config = config;
2928
InitializeTreeView();

RetailCoder.VBE/UI/Settings/SettingsDialog.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ public partial class _SettingsDialog : Form
1616
{
1717
private Configuration _config;
1818
private IConfigurationService _configService;
19-
private _ConfigurationTreeViewControl _treeview;
19+
private ConfigurationTreeViewControl _treeview;
2020
private Control _activeControl;
2121

2222
private TodoSettingPresenter _todoController;
23-
private _TodoListSettingsUserControl _todoView;
23+
private TodoListSettingsUserControl _todoView;
2424

2525
/// <summary>
2626
/// Default constructor for GUI Designer. DO NOT USE.
@@ -35,13 +35,13 @@ public _SettingsDialog(IConfigurationService configService)
3535
{
3636
_configService = configService;
3737
_config = _configService.LoadConfiguration();
38-
_treeview = new _ConfigurationTreeViewControl(_config);
38+
_treeview = new ConfigurationTreeViewControl(_config);
3939

4040
this.splitContainer1.Panel1.Controls.Add(_treeview);
4141
_treeview.Dock = DockStyle.Fill;
4242

4343
var markers = _config.UserSettings.ToDoListSettings.ToDoMarkers.ToList();
44-
_todoView = new _TodoListSettingsUserControl(markers);
44+
_todoView = new TodoListSettingsUserControl(markers);
4545

4646
ActivateControl(_todoView);
4747
_todoController = new TodoSettingPresenter(_todoView);
@@ -70,7 +70,7 @@ private void _treeview_NodeSelected(object sender, TreeViewEventArgs e)
7070

7171
if (e.Node.Text == "Code Inpsections")
7272
{
73-
controlToActivate = new _CodeInspectionControl(_config.UserSettings.CodeInspectionSettings.CodeInspections.ToList());
73+
controlToActivate = new CodeInspectionControl(_config.UserSettings.CodeInspectionSettings.CodeInspections.ToList());
7474
}
7575

7676
ActivateControl(controlToActivate);

RetailCoder.VBE/UI/Settings/TodoListSettingsUserControl.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

RetailCoder.VBE/UI/Settings/TodoListSettingsUserControl.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,15 @@
77

88
namespace Rubberduck.UI.Settings
99
{
10-
[System.Runtime.InteropServices.ComVisible(true)]
11-
public partial class _TodoListSettingsUserControl : UserControl, ITodoSettingsView
10+
public partial class TodoListSettingsUserControl : UserControl, ITodoSettingsView
1211
{
1312
/// <summary> Parameterless Constructor is to enable design view only. DO NOT USE. </summary>
14-
public _TodoListSettingsUserControl()
13+
public TodoListSettingsUserControl()
1514
{
1615
InitializeComponent();
1716
}
1817

19-
public _TodoListSettingsUserControl(List<ToDoMarker> markers)
18+
public TodoListSettingsUserControl(List<ToDoMarker> markers)
2019
: this()
2120
{
2221
this.tokenListBox.DataSource = new BindingList<ToDoMarker>(markers);

0 commit comments

Comments
 (0)