SubForm.cs 802 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. using System.Windows.Forms;
  3. namespace Optimizer
  4. {
  5. public sealed partial class SubForm : Form
  6. {
  7. public SubForm()
  8. {
  9. InitializeComponent();
  10. CheckForIllegalCrossThreadCalls = false;
  11. this.DoubleBuffered = true;
  12. OptionsHelper.ApplyTheme(this);
  13. btnStart.Focus();
  14. btnStart.Select();
  15. }
  16. internal void SetTip(string tip)
  17. {
  18. txtInfo.Text = tip;
  19. btnStart.Focus();
  20. btnStart.Select();
  21. }
  22. private void btnStart_Click(object sender, EventArgs e)
  23. {
  24. this.Close();
  25. }
  26. private void SubForm_Load(object sender, EventArgs e)
  27. {
  28. OptionsHelper.ApplyTheme(this);
  29. }
  30. }
  31. }