Fixed a bug in the report settings that stopped the back page's height from being saved.
This commit is contained in:
@@ -40,6 +40,7 @@ namespace AdvertsingProfitControl
|
||||
}
|
||||
|
||||
Properties.Settings.Default.ApcReportWidth = apcReportWidthNumericUpDown.Value + unit;
|
||||
Properties.Settings.Default.Save();
|
||||
}
|
||||
|
||||
private void UpdateApcReportHeight(object sender, EventArgs e)
|
||||
@@ -59,6 +60,7 @@ namespace AdvertsingProfitControl
|
||||
}
|
||||
|
||||
Properties.Settings.Default.ApcReportHeight = apcReportHeightNumericUpDown.Value + unit;
|
||||
Properties.Settings.Default.Save();
|
||||
}
|
||||
|
||||
private void ApcRadioButtonChecked(object sender, EventArgs e)
|
||||
@@ -74,14 +76,18 @@ namespace AdvertsingProfitControl
|
||||
wicFontSizeNumericUpdown.ValueChanged -= UpdateBackPageFontSize;
|
||||
apcReportWidthNumericUpDown.ValueChanged -= UpdateApcReportWidth;
|
||||
apcReportHeightNumericUpDown.ValueChanged -= UpdateApcReportHeight;
|
||||
wicReportWidthNumericUpDown.ValueChanged -= UpdateWicReportWidth;
|
||||
wicReportHeightNumericUpDown.ValueChanged -= UpdateWicHeight;
|
||||
//Load the current settings for font sizes
|
||||
apcFontSizeNumericUpDown.Text = Properties.Settings.Default.ApcFontSize.Replace("px", "");
|
||||
wicFontSizeNumericUpdown.Text = Properties.Settings.Default.WicFontSize.Replace("px", "");
|
||||
//Load the width and height settings for the front page.
|
||||
apcFontSizeNumericUpDown.ValueChanged += UpdateFrontPageFontSize;
|
||||
wicFontSizeNumericUpdown.ValueChanged += UpdateBackPageFontSize;
|
||||
LoadApcSettings();
|
||||
LoadWicSettings();
|
||||
apcFontSizeNumericUpDown.ValueChanged += UpdateFrontPageFontSize;
|
||||
wicFontSizeNumericUpdown.ValueChanged += UpdateBackPageFontSize;
|
||||
wicReportWidthNumericUpDown.ValueChanged += UpdateWicReportWidth;
|
||||
wicReportHeightNumericUpDown.ValueChanged += UpdateWicHeight;
|
||||
apcReportWidthNumericUpDown.ValueChanged += UpdateApcReportWidth;
|
||||
apcReportHeightNumericUpDown.ValueChanged += UpdateApcReportHeight;
|
||||
//Grab the paper kinds
|
||||
@@ -287,6 +293,7 @@ namespace AdvertsingProfitControl
|
||||
}
|
||||
|
||||
Properties.Settings.Default.WicReportWidth = wicReportWidthNumericUpDown.Value + unit;
|
||||
Properties.Settings.Default.Save();
|
||||
}
|
||||
|
||||
private void UpdateWicHeight(object sender, EventArgs e)
|
||||
@@ -306,6 +313,7 @@ namespace AdvertsingProfitControl
|
||||
}
|
||||
|
||||
Properties.Settings.Default.WicReportHeight = wicReportHeightNumericUpDown.Value + unit;
|
||||
Properties.Settings.Default.Save();
|
||||
}
|
||||
|
||||
private void WicRadioButtonCheckedChanged(object sender, EventArgs e)
|
||||
@@ -317,6 +325,7 @@ namespace AdvertsingProfitControl
|
||||
private void UpdatePaperKind(object sender, EventArgs e)
|
||||
{
|
||||
Properties.Settings.Default.ReportPaperKind = paperKindComboBox.SelectedItem.ToString();
|
||||
Properties.Settings.Default.Save();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user