OSDN Git Service

AppliStation-GUI,Windows7でシールドアイコンが4色になってしまうのを修正
[applistation/AppliStation.git] / AppliStation / UserPrefForm.cs
index 43e5b76..7342303 100644 (file)
@@ -40,6 +40,8 @@ namespace AppliStation
                        \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
@@ -276,6 +278,36 @@ namespace AppliStation
                \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
@@ -296,6 +328,7 @@ namespace AppliStation
                        \r
                        commitRepositoryListSetting();\r
                        commitProxySetting(pref);\r
+                       commitInstallSetting(pref);\r
                        \r
                        commitNaGetLibPref(pref);\r
                }\r