LoadSettings.cs 998 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. namespace LibraryViewer
  10. {
  11. public partial class LoadSettings : Form
  12. {
  13. public LoadSettings()
  14. {
  15. InitializeComponent();
  16. }
  17. private void button1_Click(object sender, EventArgs e)
  18. {
  19. this.Hide();
  20. }
  21. public bool GetFrontSide()
  22. {
  23. return cbFront.Checked;
  24. }
  25. public string GetPrefix()
  26. {
  27. return cbPrefix.Text;
  28. }
  29. public bool GetManualPrefix()
  30. {
  31. return cbManualPrefix.Checked;
  32. }
  33. private void cbManualPrefix_CheckedChanged(object sender, EventArgs e)
  34. {
  35. cbPrefix.Enabled = cbManualPrefix.Checked;
  36. if (cbPrefix.Enabled) cbPrefix.Text = "00";
  37. else cbPrefix.Text = "";
  38. }
  39. }
  40. }