public BMGenTool() { InitializeComponent(); beaconList = new List <BEACON>(); leuList = new List <LEU>(); //cur dir should be the exe run dir //currentRunDir = System.IO.Directory.GetCurrentDirectory(); string exeFullName = System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName; currentRunDir = System.Windows.Forms.Application.StartupPath; {//set all the log shows in the logbox TraceMethod.SetHMITraceTextBox(TraceMethod.TraceKind.DEBUG, listBoxLog); TraceMethod.SetHMITraceTextBox(TraceMethod.TraceKind.INFO, listBoxLog); TraceMethod.SetHMITraceTextBox(TraceMethod.TraceKind.ERROR, listBoxLog); TraceMethod.SetHMITraceTextBox(TraceMethod.TraceKind.WARNING, listBoxLog); TraceMethod.SetLogTraceFileProperties(true, ""); } Init(); }