-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathViewFilter.cs
More file actions
42 lines (38 loc) · 1.24 KB
/
ViewFilter.cs
File metadata and controls
42 lines (38 loc) · 1.24 KB
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
39
40
41
42
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using BitDiffer.Common.Configuration;
namespace BitDiffer.Client.Controls
{
public partial class CompareViewFilter : UserControl
{
public CompareViewFilter()
{
InitializeComponent();
}
internal void LoadFilter(ComparisonFilter cf)
{
cbChangedOnly.Checked = cf.ChangedItemsOnly;
cbPublic.Checked = cf.IncludePublic;
cbProtected.Checked = cf.IncludeProtected;
cbInternal.Checked = cf.IncludeInternal;
cbPrivate.Checked = cf.IncludePrivate;
cbIgnoreAssemAttrs.Checked = cf.IgnoreAssemblyAttributeChanges;
cbCompareImplementation.Checked = cf.CompareMethodImplementations;
}
internal void SaveFilter(ComparisonFilter cf)
{
cf.ChangedItemsOnly = cbChangedOnly.Checked;
cf.IncludePublic = cbPublic.Checked;
cf.IncludeProtected = cbProtected.Checked;
cf.IncludeInternal = cbInternal.Checked;
cf.IncludePrivate = cbPrivate.Checked;
cf.IgnoreAssemblyAttributeChanges = cbIgnoreAssemAttrs.Checked;
cf.CompareMethodImplementations = cbCompareImplementation.Checked;
}
}
}