-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathSchemaFolderOptions.cs
91 lines (77 loc) · 4.62 KB
/
SchemaFolderOptions.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
namespace SsmsSchemaFolders
{
using Localization;
using Microsoft.VisualStudio.Shell;
using System.ComponentModel;
using System.Windows.Forms;
using System.Windows.Forms.Design;
public class SchemaFolderOptions : DialogPage, ISchemaFolderOptions
{
[CategoryResources(nameof(SchemaFolderOptions) + "Active")]
[DisplayNameResources(nameof(SchemaFolderOptions) + nameof(Enabled))]
[DescriptionResources(nameof(SchemaFolderOptions) + nameof(Enabled))]
[DefaultValue(true)]
public bool Enabled { get; set; } = true;
[CategoryResources(nameof(SchemaFolderOptions) + "Active")]
[DisplayNameResources(nameof(SchemaFolderOptions) + nameof(EnabledModifierKeys))]
[DescriptionResources(nameof(SchemaFolderOptions) + nameof(EnabledModifierKeys))]
[DefaultValue(Keys.Control)]
//[Editor(typeof(ShortcutKeysEditor), typeof(UITypeEditor))]
public Keys EnabledModifierKeys { get; set; } = Keys.Control;
[CategoryResources(nameof(SchemaFolderOptions) + "FolderDisplayOptions")]
[DisplayNameResources(nameof(SchemaFolderOptions) + nameof(AppendDot))]
[DescriptionResources(nameof(SchemaFolderOptions) + nameof(AppendDot))]
[DefaultValue(true)]
public bool AppendDot { get; set; } = true;
[CategoryResources(nameof(SchemaFolderOptions) + "FolderDisplayOptions")]
[DisplayNameResources(nameof(SchemaFolderOptions) + nameof(CloneParentNode))]
[DescriptionResources(nameof(SchemaFolderOptions) + nameof(CloneParentNode))]
[DefaultValue(true)]
public bool CloneParentNode { get; set; } = true;
[CategoryResources(nameof(SchemaFolderOptions) + "FolderDisplayOptions")]
[DisplayNameResources(nameof(SchemaFolderOptions) + nameof(UseObjectIcon))]
[DescriptionResources(nameof(SchemaFolderOptions) + nameof(UseObjectIcon))]
[DefaultValue(true)]
public bool UseObjectIcon { get; set; } = true;
[CategoryResources(nameof(SchemaFolderOptions) + "ObjectDisplayOptions")]
[DisplayNameResources(nameof(SchemaFolderOptions) + nameof(RenameNode))]
[DescriptionResources(nameof(SchemaFolderOptions) + nameof(RenameNode))]
[DefaultValue(false)]
public bool RenameNode { get; set; } = false;
[CategoryResources(nameof(SchemaFolderOptions) + "Performance")]
[DisplayNameResources(nameof(SchemaFolderOptions) + nameof(QuickSchema))]
[DescriptionResources(nameof(SchemaFolderOptions) + nameof(QuickSchema))]
[DefaultValue(0)]
public int QuickSchema { get; set; } = 0;
[CategoryResources(nameof(SchemaFolderOptions) + "Performance")]
[DisplayNameResources(nameof(SchemaFolderOptions) + nameof(UnresponsiveTimeout))]
[DescriptionResources(nameof(SchemaFolderOptions) + nameof(UnresponsiveTimeout))]
[DefaultValue(200)]
public int UnresponsiveTimeout { get; set; } = 200;
[CategoryResources(nameof(SchemaFolderOptions) + "Performance")]
[DisplayNameResources(nameof(SchemaFolderOptions) + nameof(UseClear))]
[DescriptionResources(nameof(SchemaFolderOptions) + nameof(UseClear))]
[DefaultValue(0)]
public int UseClear { get; set; } = 0;
[CategoryResources(nameof(SchemaFolderOptions) + "FolderLevel1")]
[DisplayNameResources(nameof(SchemaFolderOptions) + nameof(Level1FolderType))]
[DescriptionResources(nameof(SchemaFolderOptions) + nameof(Level1FolderType))]
[DefaultValue(FolderType.Schema)]
public FolderType Level1FolderType { get; set; } = FolderType.Schema;
[CategoryResources(nameof(SchemaFolderOptions) + "FolderLevel1")]
[DisplayNameResources(nameof(SchemaFolderOptions) + nameof(Level1MinNodeCount))]
[DescriptionResources(nameof(SchemaFolderOptions) + nameof(Level1MinNodeCount))]
[DefaultValue(0)]
public int Level1MinNodeCount { get; set; } = 0;
[CategoryResources(nameof(SchemaFolderOptions) + "FolderLevel2")]
[DisplayNameResources(nameof(SchemaFolderOptions) + nameof(Level2FolderType))]
[DescriptionResources(nameof(SchemaFolderOptions) + nameof(Level2FolderType))]
[DefaultValue(FolderType.Alphabetical)]
public FolderType Level2FolderType { get; set; } = FolderType.Alphabetical;
[CategoryResources(nameof(SchemaFolderOptions) + "FolderLevel2")]
[DisplayNameResources(nameof(SchemaFolderOptions) + nameof(Level2MinNodeCount))]
[DescriptionResources(nameof(SchemaFolderOptions) + nameof(Level2MinNodeCount))]
[DefaultValue(200)]
public int Level2MinNodeCount { get; set; } = 200;
}
}