void MainFormLoad(object sender, EventArgs e) { uir = new ControlRunner(this); ior = new ThreadRunner("IO", (Exception ex) => { IoClose(); uir.Run(() => { Log("error", "Error: {0}", ex.Message); }); }); Text = string.Format("{0} - {1} https://github.com/samuelventura/SharpMaster", Text, Exe.VersionString()); WrapRunner.Try(() => { LoadSettings(); }); RefreshSerials(); EnableControls(true); }