using HighWayIot.Log4net; using HighWayIot.Winform.Business; 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 HighWayIot.Winform.UserControlPages { public partial class TestPage : UserControl { private static LogHelper logger = LogHelper.Instance; public TestPage() { InitializeComponent(); } XmlUtil xmlUtil = new XmlUtil(); private void button1_Click(object sender, EventArgs e) { var list = xmlUtil.ConfigReader(); foreach (var item in list) { Console.WriteLine(item.RoleIndex + item.PageName); } } private void button2_Click(object sender, EventArgs e) { char[] chars = new char[100]; for (int i = 0; i < 100; i++) { chars[i] = '0'; } string originalRole = new string(chars); } } }