You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
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)
|
|
|
|
|
{
|
|
|
|
|
SqlLogHelper.AddLog("wdas", 7, 8, 9);
|
|
|
|
|
SqlLogHelper.AddErrorLog("wocasda", 4, 5, 6);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|