private void Form1_Load(object sender, EventArgs e) { XMLConfigManager configManager = new XMLConfigManager(); modelList = configManager.LoadConfig(); //将控件放入内存表并设置第一次单击全选事件 foreach (Control item in groupBox2.Controls) { if (item is TextBox) { boxList.Add(item as TextBox); item.Tag = false; item.GotFocus += new EventHandler(textBox_GotFocus); item.MouseUp += new MouseEventHandler(textBox_MouseUp); } } foreach (Control item in groupBox1.Controls) { item.Tag = false; item.GotFocus += new EventHandler(textBox_GotFocus); item.MouseUp += new MouseEventHandler(textBox_MouseUp); } }
public XMLConfigProvider(XMLConfigManager manager) { this.manager = manager; }