123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.ComponentModel.DataAnnotations;
- using System.Drawing;
- using System.Data;
- using System.Linq;
- using System.Reflection;
- using System.Text;
- using System.Windows.Controls;
- using System.Windows.Forms;
- using Aitex.Core.RT.Log;
- using Aitex.Core.RT.SCCore;
- using Aitex.Core.RT.Simulator;
- using CheckBox = System.Windows.Forms.CheckBox;
- using TextBox = System.Windows.Forms.TextBox;
- using UserControl = System.Windows.Forms.UserControl;
- namespace Aitex.Core.Backend
- {
- public partial class SystemConfigView : UserControl
- {
-
- private Dictionary<string, Type> _scItems = new Dictionary<string, Type>();
- public SystemConfigView()
- {
- InitializeComponent();
- }
- private void SystemConfigView_Load(object sender, EventArgs e)
- {
- this.Dock = DockStyle.Fill;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- void bt_Click(object sender, EventArgs e)
- {
- System.Windows.Forms.Button bt = sender as System.Windows.Forms.Button;
-
- FlowLayoutPanel fl = bt.Parent as FlowLayoutPanel;
- TextBox tbName = new TextBox();
- TextBox tbValue = new TextBox();
-
- foreach (var v in fl.Controls)
- {
- TextBox tb = v as TextBox;
- if (tb == null)
- continue;
- if (tb.ReadOnly)
- tbName = tb;
- else
- {
- tbValue = tb;
- }
- }
- SC.SetItemValue(bt.Tag.ToString(), tbValue.Text);
- }
- private void button1_Click(object sender, EventArgs e)
- {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
- }
- }
|