12345678910111213141516171819202122232425262728293031323334353637 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace YGUV.Config.FormConfig
- {
- public partial class Form_Version : Form
- {
- public Form_Version(bool isread)
- {
- InitializeComponent();
- this.Load += Form_Version_Load;
- if (isread)
- {
- this.textBox1.ReadOnly = true;
- this.richTextBox1.ReadOnly = true;
- }
- else
- {
- this.textBox1.ReadOnly = false;
- this.richTextBox1.ReadOnly = false;
- }
- }
- private void Form_Version_Load(object sender, EventArgs e)
- {
- textBox1.DataBindings.Add("Text", YG.DeviceConfig.Instance.version, "Version");
- richTextBox1.DataBindings.Add("Text", YG.DeviceConfig.Instance.version, "VersionDescription");
- }
- }
- }
|