Form1.cs 792 B

12345678910111213141516171819202122232425262728
  1. using Azylee.Core.LogUtils.StatusLogUtils;
  2. using System;
  3. using System.Windows.Forms;
  4. namespace Test.BlackBox
  5. {
  6. public partial class Form1 : Form
  7. {
  8. public Form1()
  9. {
  10. InitializeComponent();
  11. }
  12. private void Form1_Load(object sender, EventArgs e)
  13. {
  14. }
  15. private void BTStartBB_Click(object sender, EventArgs e)
  16. {
  17. bool flag = StatusLog.Instance.Start();
  18. textBox1.AppendText(Environment.NewLine + (flag ? "启动成功" : "启动失败"));
  19. }
  20. private void BTStopBB_Click(object sender, EventArgs e)
  21. {
  22. bool flag = StatusLog.Instance.Stop();
  23. textBox1.AppendText(Environment.NewLine + (flag ? "停止成功" : "停止失败"));
  24. }
  25. }
  26. }