FormLauncher.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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.Diagnostics;
  7. using System.Drawing;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Threading.Tasks;
  11. using System.Windows.Forms;
  12. namespace qdr.app.studiou.orders2printpack
  13. {
  14. public partial class FormLauncher : Form
  15. {
  16. public FormLauncher()
  17. {
  18. InitializeComponent();
  19. }
  20. private void FormLauncher_Load(object sender, EventArgs e)
  21. {
  22. Text = $"{Application.ProductName} v{Application.ProductVersion}";
  23. lVersion.Text = $"Verze: {Application.ProductVersion}";
  24. }
  25. private void butFormBatch_Click(object sender, EventArgs e)
  26. {
  27. var form = new FormBatch();
  28. form.Show(this);
  29. }
  30. private void butProductEdit_Click(object sender, EventArgs e)
  31. {
  32. var form = new FormProductEdit();
  33. form.Show(this);
  34. }
  35. private void butResetCfg_Click(object sender, EventArgs e)
  36. {
  37. AppSettings.Default.Reset();
  38. AppSettings.Default.Reload();
  39. AppSettings.Default.Save();
  40. MessageBox.Show("Konfigurace nastavena do výchozího nastavení.", "Reset konfigurace", MessageBoxButtons.OK, MessageBoxIcon.Information);
  41. }
  42. private void butLabalPrint_Click(object sender, EventArgs e)
  43. {
  44. var form = new FormLabelPrint();
  45. form.Show(this);
  46. }
  47. private void butEditCfg_Click(object sender, EventArgs e)
  48. {
  49. var dlg = new dlgEditCfg();
  50. dlg.ShowDialog(this);
  51. }
  52. }
  53. }