using HybirdFrameworkServices.System; using log4net; namespace WinFormStarter; public partial class Form1 : Form { private ILog _log = LogManager.GetLogger(typeof(Form1)); private SysUserServices _sysUserServices; public Form1(SysUserServices sysUserServices) { _sysUserServices = sysUserServices; InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { _log.Info("this is a test"); MessageBox.Show(_sysUserServices.Query().Count.ToString()); } }