public FormMain() { InitializeComponent(); UIFileLog logger = new UIFileLog(); logger.LogListBox = listBoxLog; UITraceLog tracelog = new UITraceLog(); tracelog.LogListBox = listBoxLog; LogMgr.Logger = logger; }