dlgLabelSettings.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using qdr.app.studiou.orders2printpack.Properties;
  2. namespace qdr.app.studiou.orders2printpack
  3. {
  4. public partial class dlgLabelSettings : Form
  5. {
  6. public dlgLabelSettings()
  7. {
  8. InitializeComponent();
  9. }
  10. #region *** Form Handler ***
  11. [System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "<Pending>")]
  12. private void dlgLabelSettings_Load(object sender, EventArgs e)
  13. {
  14. tbTemplate.Text = AppSettings.Default.LabelTemplate;
  15. tbLPerCol.Text = AppSettings.Default.LabelPerCol;
  16. tbLPerRow.Text = AppSettings.Default.LabelPerRow;
  17. tbLWidth.Text = AppSettings.Default.LabelWidth;
  18. tbLHeight.Text = AppSettings.Default.LabelHeight;
  19. }
  20. [System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "<Pending>")]
  21. private void butOk_Click(object sender, EventArgs e)
  22. {
  23. AppSettings.Default.LabelTemplate = tbTemplate.Text;
  24. AppSettings.Default.LabelPerCol = tbLPerCol.Text;
  25. AppSettings.Default.LabelPerRow = tbLPerRow.Text;
  26. AppSettings.Default.LabelWidth = tbLWidth.Text;
  27. AppSettings.Default.LabelHeight = tbLHeight.Text;
  28. AppSettings.Default.Save();
  29. Close();
  30. }
  31. #endregion
  32. private void butCancel_Click(object sender, EventArgs e)
  33. {
  34. Close();
  35. }
  36. }
  37. }