Form1.cs 847 B

1234567891011121314151617181920212223242526272829303132
  1. using Azylee.BlackBox.Utils;
  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.Windows.Forms;
  10. namespace Test.BlackBox
  11. {
  12. public partial class Form1 : Form
  13. {
  14. public Form1()
  15. {
  16. InitializeComponent();
  17. }
  18. private void BTStartBB_Click(object sender, EventArgs e)
  19. {
  20. bool flag = BlackBoxTool.Instance.Start();
  21. textBox1.AppendText(Environment.NewLine + (flag ? "启动成功" : "启动失败"));
  22. }
  23. private void BTStopBB_Click(object sender, EventArgs e)
  24. {
  25. bool flag = BlackBoxTool.Instance.Stop();
  26. textBox1.AppendText(Environment.NewLine + (flag ? "停止成功" : "停止失败"));
  27. }
  28. }
  29. }