forked from rubberduck-vba/Rubberduck
-
Notifications
You must be signed in to change notification settings - Fork 12
/
CodeInspectionControl.cs
38 lines (32 loc) · 1.05 KB
/
CodeInspectionControl.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Rubberduck.Config;
namespace Rubberduck.UI.Settings
{
public partial class CodeInspectionControl : UserControl
{
private Configuration _config;
private BindingList<CodeInspection> _inspections;
/// <summary> Parameterless Constructor is to enable design view only. DO NOT USE. </summary>
public CodeInspectionControl()
{
InitializeComponent();
}
public CodeInspectionControl(Configuration config)
: this()
{
_config = config;
_inspections = new BindingList<CodeInspection>(_config.UserSettings.CodeInspectinSettings.CodeInspections.ToList());
//this.dataGridView1.AutoGenerateColumns = true;
this.dataGridView1.DataSource = _inspections;
//todo: change severity to combo box
}
}
}