FormLauncher.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using qdr.app.studiou.orders2printpack.Properties;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Data;
  6. using System.Drawing;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. using System.Windows.Forms;
  11. namespace qdr.app.studiou.orders2printpack
  12. {
  13. public partial class FormLauncher : Form
  14. {
  15. public FormLauncher()
  16. {
  17. InitializeComponent();
  18. }
  19. private void FormLauncher_Load(object sender, EventArgs e)
  20. {
  21. Text = $"{Application.ProductName} v{Application.ProductVersion}";
  22. }
  23. private void butFormBatch_Click(object sender, EventArgs e)
  24. {
  25. var form = new FormBatch();
  26. form.Show(this);
  27. }
  28. private void butProductEdit_Click(object sender, EventArgs e)
  29. {
  30. var form = new FormProductEdit();
  31. form.Show(this);
  32. }
  33. private void butResetCfg_Click(object sender, EventArgs e)
  34. {
  35. AppSettings.Default.Reset();
  36. AppSettings.Default.Reload();
  37. AppSettings.Default.Save();
  38. MessageBox.Show("Konfigurace nastavena do výchozího nastavení.", "Reset konfigurace", MessageBoxButtons.OK, MessageBoxIcon.Information);
  39. }
  40. }
  41. }