this.proxyURLTextBox = new System.Windows.Forms.TextBox();\r
this.openInternetOptionLinkLabel = new System.Windows.Forms.LinkLabel();\r
this.openInternetOptionLinkAdminLabel = new System.Windows.Forms.LinkLabel();\r
+ this.installTabPage = new System.Windows.Forms.TabPage();\r
+ this.installFlowLayoutPanel = new System.Windows.Forms.FlowLayoutPanel();\r
+ this.installScanInstallerFileCheckbox = new System.Windows.Forms.CheckBox();\r
+ this.installOnBackgroundCheckBox = new System.Windows.Forms.CheckBox();\r
this.toolTip = new System.Windows.Forms.ToolTip(this.components);\r
this.repoUrlTextBoxErrorProvider = new System.Windows.Forms.ErrorProvider(this.components);\r
this.tableLayoutPanel.SuspendLayout();\r
this.networkTabPage.SuspendLayout();\r
this.proxyGroupBox.SuspendLayout();\r
this.proxyTableLayoutPanel.SuspendLayout();\r
+ this.installTabPage.SuspendLayout();\r
+ this.installFlowLayoutPanel.SuspendLayout();\r
((System.ComponentModel.ISupportInitialize)(this.repoUrlTextBoxErrorProvider)).BeginInit();\r
this.SuspendLayout();\r
// \r
// \r
this.tabControl.Controls.Add(this.reposListTabPage);\r
this.tabControl.Controls.Add(this.networkTabPage);\r
+ this.tabControl.Controls.Add(this.installTabPage);\r
this.tabControl.Dock = System.Windows.Forms.DockStyle.Fill;\r
this.tabControl.Location = new System.Drawing.Point(5, 5);\r
this.tabControl.Margin = new System.Windows.Forms.Padding(5);\r
this.openInternetOptionLinkAdminLabel.VisitedLinkColor = System.Drawing.SystemColors.HotTrack;\r
this.openInternetOptionLinkAdminLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.OpenInternetOptionLinkLabelLinkClicked);\r
// \r
+ // installTabPage\r
+ // \r
+ this.installTabPage.Controls.Add(this.installFlowLayoutPanel);\r
+ this.installTabPage.Location = new System.Drawing.Point(4, 21);\r
+ this.installTabPage.Name = "installTabPage";\r
+ this.installTabPage.Padding = new System.Windows.Forms.Padding(3);\r
+ this.installTabPage.Size = new System.Drawing.Size(446, 215);\r
+ this.installTabPage.TabIndex = 2;\r
+ this.installTabPage.Text = "インストール";\r
+ this.installTabPage.UseVisualStyleBackColor = true;\r
+ // \r
+ // installFlowLayoutPanel\r
+ // \r
+ this.installFlowLayoutPanel.Controls.Add(this.installScanInstallerFileCheckbox);\r
+ this.installFlowLayoutPanel.Controls.Add(this.installOnBackgroundCheckBox);\r
+ this.installFlowLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill;\r
+ this.installFlowLayoutPanel.Location = new System.Drawing.Point(3, 3);\r
+ this.installFlowLayoutPanel.Name = "installFlowLayoutPanel";\r
+ this.installFlowLayoutPanel.Padding = new System.Windows.Forms.Padding(10);\r
+ this.installFlowLayoutPanel.Size = new System.Drawing.Size(440, 209);\r
+ this.installFlowLayoutPanel.TabIndex = 0;\r
+ // \r
+ // installScanInstallerFileCheckbox\r
+ // \r
+ this.installScanInstallerFileCheckbox.AutoSize = true;\r
+ this.installFlowLayoutPanel.SetFlowBreak(this.installScanInstallerFileCheckbox, true);\r
+ this.installScanInstallerFileCheckbox.Location = new System.Drawing.Point(13, 13);\r
+ this.installScanInstallerFileCheckbox.Name = "installScanInstallerFileCheckbox";\r
+ this.installScanInstallerFileCheckbox.Size = new System.Drawing.Size(227, 16);\r
+ this.installScanInstallerFileCheckbox.TabIndex = 0;\r
+ this.installScanInstallerFileCheckbox.Text = "インストーラファイルをウイルススキャンする(&S)";\r
+ this.toolTip.SetToolTip(this.installScanInstallerFileCheckbox, "インストーラファイルをダウンロードしたら直ちにウイルススキャンを行い、PCへの脅威を取り除きます。");\r
+ this.installScanInstallerFileCheckbox.UseVisualStyleBackColor = true;\r
+ // \r
+ // installOnBackgroundCheckBox\r
+ // \r
+ this.installOnBackgroundCheckBox.AutoSize = true;\r
+ this.installFlowLayoutPanel.SetFlowBreak(this.installOnBackgroundCheckBox, true);\r
+ this.installOnBackgroundCheckBox.Location = new System.Drawing.Point(13, 35);\r
+ this.installOnBackgroundCheckBox.Name = "installOnBackgroundCheckBox";\r
+ this.installOnBackgroundCheckBox.Size = new System.Drawing.Size(306, 16);\r
+ this.installOnBackgroundCheckBox.TabIndex = 1;\r
+ this.installOnBackgroundCheckBox.Text = "インストール・アンインストール処理を優先度を下げて実行(&P)";\r
+ this.toolTip.SetToolTip(this.installOnBackgroundCheckBox, "ロースペックなPCであっても、インストール・アンインストール処理中に快適に他の作業を行えるよう優先度を下げることができます。");\r
+ this.installOnBackgroundCheckBox.UseVisualStyleBackColor = true;\r
+ // \r
// repoUrlTextBoxErrorProvider\r
// \r
this.repoUrlTextBoxErrorProvider.BlinkStyle = System.Windows.Forms.ErrorBlinkStyle.AlwaysBlink;\r
this.proxyGroupBox.ResumeLayout(false);\r
this.proxyTableLayoutPanel.ResumeLayout(false);\r
this.proxyTableLayoutPanel.PerformLayout();\r
+ this.installTabPage.ResumeLayout(false);\r
+ this.installFlowLayoutPanel.ResumeLayout(false);\r
+ this.installFlowLayoutPanel.PerformLayout();\r
((System.ComponentModel.ISupportInitialize)(this.repoUrlTextBoxErrorProvider)).EndInit();\r
this.ResumeLayout(false);\r
}\r
+ private System.Windows.Forms.CheckBox installOnBackgroundCheckBox;\r
+ private System.Windows.Forms.CheckBox installScanInstallerFileCheckbox;\r
+ private System.Windows.Forms.FlowLayoutPanel installFlowLayoutPanel;\r
+ private System.Windows.Forms.TabPage installTabPage;\r
private System.Windows.Forms.ErrorProvider repoUrlTextBoxErrorProvider;\r
private System.Windows.Forms.ToolTip toolTip;\r
private System.Windows.Forms.LinkLabel openInternetOptionLinkAdminLabel;\r
\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
\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
\r
commitRepositoryListSetting();\r
commitProxySetting(pref);\r
+ commitInstallSetting(pref);\r
\r
commitNaGetLibPref(pref);\r
}\r