示例#1
0
        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);
            }
        }
示例#2
0
 public XMLConfigProvider(XMLConfigManager manager)
 {
     this.manager = manager;
 }