Add setting for Next in Series download.
MODIFY
XRayBuilder/Properties/Settings.Designer.cs
XRayBuilder/Properties/Settings.Designer.cs
@@ -12,7 +12,7 @@ namespace XRayBuilderGUI.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.7.0.0")]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.8.1.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
@@ -502,5 +502,17 @@ internal sealed partial class Settings : global::System.Configuration.Applicatio
this["editDescription"] = value;
}
}
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("False")]
+ public bool downloadNIS {
+ get {
+ return ((bool)(this["downloadNIS"]));
+ }
+ set {
+ this["downloadNIS"] = value;
+ }
+ }
}
}

MODIFY
XRayBuilder/Properties/Settings.settings
XRayBuilder/Properties/Settings.settings
<Setting Name="editDescription" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
- <Setting Name="Language" Type="System.String" Scope="User">
- <Value Profile="(Default)" />
+ <Setting Name="downloadNIS" Type="System.Boolean" Scope="User">
+ <Value Profile="(Default)">False</Value>
</Setting>
</Settings>
</SettingsFile>
\ No newline at end of file

MODIFY
XRayBuilder/app.config
XRayBuilder/app.config
<setting name="editDescription" serializeAs="String">
<value>True</value>
</setting>
- <setting name="Language" serializeAs="String">
- <value />
+ <setting name="downloadNIS" serializeAs="String">
+ <value>False</value>
</setting>
</XRayBuilderGUI.Properties.Settings>
</userSettings>

MODIFY
XRayBuilder/src/UI/frmMain.cs
XRayBuilder/src/UI/frmMain.cs
@@ -586,7 +586,8 @@ string AsinPrompt(string title, string author)
UseNewVersion = _settings.useNewVersion,
PromptAsin = _settings.promptASIN,
EstimatePageCount = _settings.pageCount,
- EditDescription = _settings.editDescription
+ EditDescription = _settings.editDescription,
+ DownloadNis = _settings.downloadNIS
};
var endActionsDataGenerator = _diContainer.GetInstance<IEndActionsDataGenerator>();

MODIFY
XRayBuilder/src/UI/frmSettings.Designer.cs
XRayBuilder/src/UI/frmSettings.Designer.cs
@@ -105,6 +105,7 @@ private void InitializeComponent()
this.chkRoentgenStartActions = new System.Windows.Forms.CheckBox();
this.label4 = new System.Windows.Forms.Label();
this.listSettings = new System.Windows.Forms.ListBox();
+ this.chkRoentgenNextInSeries = new System.Windows.Forms.CheckBox();
this.tabSettings.SuspendLayout();
this.tabPgGeneral.SuspendLayout();
this.cbLanguage.SuspendLayout();
@@ -827,7 +828,7 @@ private void InitializeComponent()
this.groupBox1.Controls.Add(this.pictureBox3);
this.groupBox1.Controls.Add(this.label5);
this.groupBox1.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.groupBox1.Location = new System.Drawing.Point(6, 154);
+ this.groupBox1.Location = new System.Drawing.Point(6, 181);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(414, 58);
this.groupBox1.TabIndex = 41;
@@ -868,7 +869,7 @@ private void InitializeComponent()
//
this.groupBox9.Controls.Add(this.chkIncludeTopics);
this.groupBox9.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.groupBox9.Location = new System.Drawing.Point(6, 103);
+ this.groupBox9.Location = new System.Drawing.Point(6, 130);
this.groupBox9.Name = "groupBox9";
this.groupBox9.Size = new System.Drawing.Size(414, 48);
this.groupBox9.TabIndex = 28;
@@ -888,6 +889,7 @@ private void InitializeComponent()
//
// groupBox7
//
+ this.groupBox7.Controls.Add(this.chkRoentgenNextInSeries);
this.groupBox7.Controls.Add(this.pictureBox2);
this.groupBox7.Controls.Add(this.label3);
this.groupBox7.Controls.Add(this.chkRoentgenAuthorProfile);
@@ -896,7 +898,7 @@ private void InitializeComponent()
this.groupBox7.Font = new System.Drawing.Font("Segoe UI Semibold", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.groupBox7.Location = new System.Drawing.Point(6, 4);
this.groupBox7.Name = "groupBox7";
- this.groupBox7.Size = new System.Drawing.Size(414, 98);
+ this.groupBox7.Size = new System.Drawing.Size(414, 123);
this.groupBox7.TabIndex = 27;
this.groupBox7.TabStop = false;
this.groupBox7.Text = "Pre-built Downloads";
@@ -917,17 +919,17 @@ private void InitializeComponent()
this.label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(110)))), ((int)(((byte)(210)))));
this.label3.Location = new System.Drawing.Point(157, 17);
this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(242, 54);
+ this.label3.Size = new System.Drawing.Size(246, 42);
this.label3.TabIndex = 36;
this.label3.Text = "When these settings are enabled, pre-built versions of the files will be download" +
- "ed if they are available.\r\nRequires a valid ASIN.";
+ "ed if they are available. Requires a valid ASIN.";
//
// chkRoentgenAuthorProfile
//
this.chkRoentgenAuthorProfile.AutoSize = true;
this.chkRoentgenAuthorProfile.Enabled = false;
this.chkRoentgenAuthorProfile.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.chkRoentgenAuthorProfile.Location = new System.Drawing.Point(13, 69);
+ this.chkRoentgenAuthorProfile.Location = new System.Drawing.Point(13, 19);
this.chkRoentgenAuthorProfile.Name = "chkRoentgenAuthorProfile";
this.chkRoentgenAuthorProfile.Size = new System.Drawing.Size(100, 19);
this.chkRoentgenAuthorProfile.TabIndex = 33;
@@ -938,7 +940,7 @@ private void InitializeComponent()
//
this.chkRoentgenEndActions.AutoSize = true;
this.chkRoentgenEndActions.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.chkRoentgenEndActions.Location = new System.Drawing.Point(13, 19);
+ this.chkRoentgenEndActions.Location = new System.Drawing.Point(13, 44);
this.chkRoentgenEndActions.Name = "chkRoentgenEndActions";
this.chkRoentgenEndActions.Size = new System.Drawing.Size(89, 19);
this.chkRoentgenEndActions.TabIndex = 29;
@@ -949,7 +951,7 @@ private void InitializeComponent()
//
this.chkRoentgenStartActions.AutoSize = true;
this.chkRoentgenStartActions.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.chkRoentgenStartActions.Location = new System.Drawing.Point(13, 44);
+ this.chkRoentgenStartActions.Location = new System.Drawing.Point(13, 69);
this.chkRoentgenStartActions.Name = "chkRoentgenStartActions";
this.chkRoentgenStartActions.Size = new System.Drawing.Size(93, 19);
this.chkRoentgenStartActions.TabIndex = 24;
@@ -987,6 +989,17 @@ private void InitializeComponent()
this.listSettings.MeasureItem += new System.Windows.Forms.MeasureItemEventHandler(this.listSettings_MeasureItem);
this.listSettings.SelectedIndexChanged += new System.EventHandler(this.listSettings_SelectedIndexChanged);
//
+ // chkRoentgenNextInSeries
+ //
+ this.chkRoentgenNextInSeries.AutoSize = true;
+ this.chkRoentgenNextInSeries.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.chkRoentgenNextInSeries.Location = new System.Drawing.Point(13, 94);
+ this.chkRoentgenNextInSeries.Name = "chkRoentgenNextInSeries";
+ this.chkRoentgenNextInSeries.Size = new System.Drawing.Size(97, 19);
+ this.chkRoentgenNextInSeries.TabIndex = 38;
+ this.chkRoentgenNextInSeries.Text = "Next in Series";
+ this.chkRoentgenNextInSeries.UseVisualStyleBackColor = true;
+ //
// frmSettings
//
this.AcceptButton = this.btnSave;
@@ -1132,5 +1145,7 @@ private void InitializeComponent()
private System.Windows.Forms.CheckBox chkEditDescription;
#endregion
+
+ private System.Windows.Forms.CheckBox chkRoentgenNextInSeries;
}
}
\ No newline at end of file

MODIFY
XRayBuilder/src/UI/frmSettings.cs
XRayBuilder/src/UI/frmSettings.cs
@@ -90,6 +90,7 @@ private void frmSettingsNew_Load(object sender, EventArgs e)
chkRoentgenStartActions.Checked = Settings.Default.downloadSA;
chkRoentgenEndActions.Checked = Settings.Default.downloadEA;
chkRoentgenAuthorProfile.Checked = Settings.Default.downloadAP;
+ chkRoentgenNextInSeries.Checked = Settings.Default.downloadNIS;
chkIncludeTopics.Checked = Settings.Default.includeTopics;
@@ -205,6 +206,7 @@ private void btnSave_Click(object sender, EventArgs e)
Settings.Default.downloadSA = chkRoentgenStartActions.Checked;
Settings.Default.downloadEA = chkRoentgenEndActions.Checked;
Settings.Default.downloadAP = chkRoentgenAuthorProfile.Checked;
+ Settings.Default.downloadNIS = chkRoentgenNextInSeries.Checked;
Settings.Default.roentgenRegion = cmbRoentgenRegion.SelectedValue.ToString();
Settings.Default.includeTopics = chkIncludeTopics.Checked;
Settings.Default.Save();

Add setting for Next in Series download.