MainForm.cs 589 B

12345678910111213141516171819202122232425262728
  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.Threading.Tasks;
  9. using System.Windows.Forms;
  10. namespace Fietsclient
  11. {
  12. public partial class MainForm : Form
  13. {
  14. private readonly AppGlobal _global;
  15. public MainForm(AppGlobal global)
  16. {
  17. InitializeComponent();
  18. _global = global;
  19. }
  20. private void button1_Click(object sender, EventArgs e)
  21. {
  22. _global.startComPort();
  23. }
  24. }
  25. }