\r
NaGet.NaGetLibPref userPref = NaGet.Env.Pref;\r
this.ProxyAddress = userPref.ProxyAddress;\r
+ this.EnableScanInstallerFile = userPref.EnableScanInstallerFile;\r
+ this.InstallOnBackground = userPref.InstallOnBackground;\r
}\r
\r
#region レポジトリリスト設定関連\r
/// </summary>\r
/// <param name="repo">対象レポジトリ</param>\r
/// <returns>ListBoxに表示すべき文字列</returns>\r
- private string repoListCheckedListBoxRenderer(RepositoryInfo repo) {\r
+ private static string repoListCheckedListBoxRenderer(RepositoryInfo repo) {\r
return string.Format("{0}[{1}]", repo.Name, repo.Url.Href);\r
}\r
\r
\r
#endregion\r
\r
+ #region インストール設定関連\r
+ \r
+ /// <summary>\r
+ /// インストーラーファイルをウイルススキャンするかを設定あるいは取得する\r
+ /// </summary>\r
+ public bool EnableScanInstallerFile {\r
+ set { this.installScanInstallerFileCheckbox.Checked = value; }\r
+ get { return this.installScanInstallerFileCheckbox.Checked; }\r
+ }\r
+ \r
+ /// <summary>\r
+ /// インストール・アンインストールを優先度を下げて実行するかを設定あるいは取得する\r
+ /// </summary>\r
+ public bool InstallOnBackground {\r
+ set { this.installOnBackgroundCheckBox.Checked = value; }\r
+ get { return this.installOnBackgroundCheckBox.Checked; }\r
+ }\r
+ \r
+ /// <summary>\r
+ /// インストール関連設定を、指定された設定オブジェクトに設定する。\r
+ /// </summary>\r
+ /// <param name="pref">設定オブジェクト</param>\r
+ private void commitInstallSetting(NaGet.NaGetLibPref pref)\r
+ {\r
+ pref.EnableScanInstallerFile = this.EnableScanInstallerFile;\r
+ pref.InstallOnBackground = this.InstallOnBackground;\r
+ }\r
+ \r
+ #endregion\r
+ \r
/// <summary>\r
/// 指定された設定オブジェクトをファイルとして保存する\r
/// </summary>\r
/// <param name="pref">設定ファイル</param>\r
- private void commitNaGetLibPref(NaGet.NaGetLibPref pref)\r
+ private static void commitNaGetLibPref(NaGet.NaGetLibPref pref)\r
{\r
// ファイルに書き込む\r
string path = NaGet.Env.PrefPath;\r
\r
commitRepositoryListSetting();\r
commitProxySetting(pref);\r
+ commitInstallSetting(pref);\r
\r
commitNaGetLibPref(pref);\r
}\r