static void Main() { Logging.Start(); Context context = new Context(); context.BeforeStepExecution += BeforeStepExecution; try { Flow steps; using (var rd = new StreamReader(ConfigurationManager.AppSettings["Test"], Encoding.UTF8)) { string xml = rd.ReadToEnd(); steps = xml.FromXml<Flow>(); } context.Execute(steps); } catch (Exception e) { UIHelper.DisplayError(e); } context.BeforeStepExecution -= BeforeStepExecution; Logging.Stop(); UIHelper.Pause(); }