About.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 OTSMeasureApp
  11. {
  12. public partial class About : Form
  13. {
  14. public About()
  15. {
  16. InitializeComponent();
  17. }
  18. private void About_Load(object sender, EventArgs e)
  19. {
  20. richTextBox1.Text = "Version : 2.7\n";
  21. richTextBox1.Text += "Opton Copyright © 2022";
  22. richTextBox1.Select(0, richTextBox1.Text.Length);
  23. //richTextBox1.SelectionColor = Color.DarkBlue;
  24. richTextBox1.SelectionAlignment = HorizontalAlignment.Center;
  25. richTextBox1.ReadOnly = true;
  26. richTextBox1.Enabled = false;
  27. richTextBox1.Select(0, 0);
  28. this.Focus();
  29. }
  30. private void button_OK_Click(object sender, EventArgs e)
  31. {
  32. this.Close();
  33. }
  34. }
  35. }