@@ -11,37 +11,34 @@ namespace FlexConfirmMail.Dialog
11
11
public partial class ConfigDialog : Window
12
12
{
13
13
private string _templateTrutedDomains = @"
14
- # 社内の宛先として扱うドメイン ###
14
+ # 社内ドメイン設定 ###
15
15
#
16
- # ドメインとはメールアドレスのうち「@」の後の部分を指し、
17
- # 以下の例のように一行に一件ずつ記載します。
16
+ # (1) 送信時に社内の宛先として扱うドメインを指定します。
17
+ # (2) 以下の例のように一行に一件ずつ記載します。
18
+ # (3) 冒頭が「#」から始まる行は無視されます。
18
19
#
19
- # また、冒頭が「#」から始まる行は無視されますので、
20
- # 更新管理にご利用下さい。
21
20
##################################
22
21
23
22
example.com
24
23
example.org" ;
25
24
private string _templateUnsafeDomains = @"
26
- # 送信時に警告するドメイン ###
25
+ # 注意が必要なドメイン設定 ###
27
26
#
28
- # ドメインとはメールアドレスのうち「@」の後の部分を指し、
29
- # 以下の例のように一行に一件ずつ記載します。
27
+ # (1) 送信時に警告対象とする注意ドメインを指定します。
28
+ # (2) 以下の例のように一行に一件ずつ記載します。
29
+ # (3) 冒頭が「#」から始まる行は無視されます。
30
30
#
31
- # また、冒頭が「#」から始まる行は無視されますので、
32
- # 更新管理にご利用下さい。
33
31
##################################
34
32
35
33
example.com
36
34
example.org" ;
37
35
private string _templateUnsafeFiles = @"
38
- # 警告対象となるファイル名 ###
36
+ # 注意が必要なファイル名設定 ###
39
37
#
40
- # 添付ファイルに含まれている場合に警告対象とする単語を
41
- # 以下の例のように一行に一件ずつ記載します。
38
+ # (1) 添付ファイルに含まれる場合に警告する注意ワードを指定します。
39
+ # (2) 以下の例のように一行に一件ずつ記載します。
40
+ # (3) 冒頭が「#」から始まる行は無視されます。
42
41
#
43
- # また、冒頭が「#」から始まる行は無視されますので、
44
- # 更新管理にご利用下さい。
45
42
##################################
46
43
47
44
社外秘
@@ -65,22 +62,32 @@ public ConfigDialog()
65
62
SafeBccThreshold . Text = config . GetInt ( ConfigOption . SafeBccThreshold ) . ToString ( ) ;
66
63
67
64
// TrustedDomains
68
- TrustedDomains . Text = loader . TryRawFile ( StandardPath . GetUserDir ( ) , ConfigFile . TrustedDomains ) ;
69
- if ( String . IsNullOrWhiteSpace ( TrustedDomains . Text ) )
65
+ string text ;
66
+ if ( loader . TryRawFile ( StandardPath . GetUserDir ( ) , ConfigFile . TrustedDomains , out text ) )
67
+ {
68
+ TrustedDomains . Text = text ;
69
+ }
70
+ else
70
71
{
71
72
TrustedDomains . Text = _templateTrutedDomains . Trim ( ) ;
72
73
}
73
74
74
75
// UnsafeDomains
75
- UnsafeDomains . Text = loader . TryRawFile ( StandardPath . GetUserDir ( ) , ConfigFile . UnsafeDomains ) ;
76
- if ( String . IsNullOrWhiteSpace ( UnsafeDomains . Text ) )
76
+ if ( loader . TryRawFile ( StandardPath . GetUserDir ( ) , ConfigFile . UnsafeDomains , out text ) )
77
+ {
78
+ UnsafeDomains . Text = text ;
79
+ }
80
+ else
77
81
{
78
82
UnsafeDomains . Text = _templateUnsafeDomains . Trim ( ) ;
79
83
}
80
84
81
85
// UnsafeFiles
82
- UnsafeFiles . Text = loader . TryRawFile ( StandardPath . GetUserDir ( ) , ConfigFile . UnsafeFiles ) ;
83
- if ( String . IsNullOrWhiteSpace ( UnsafeFiles . Text ) )
86
+ if ( loader . TryRawFile ( StandardPath . GetUserDir ( ) , ConfigFile . UnsafeFiles , out text ) )
87
+ {
88
+ UnsafeFiles . Text = text ;
89
+ }
90
+ else
84
91
{
85
92
UnsafeFiles . Text = _templateUnsafeFiles . Trim ( ) ;
86
93
}
0 commit comments