public void ParsingHandler(byte[] bytes, string[] script) { variables.Clear(); p = new xPacket(bytes); string result; bool error = false; try { result = Parse(script, 0, script.Length - 1); } catch (Exception ex) { error = true; result = ex.ToString(); } Window.InvokeIfRequired(Window.Get.rtbxProcess, () => { Window.Get.rtbxProcess.Text = result; }); // Add all variables to a viewer if (!error) { ShowVariables(); } }
public Engine() { variables = new Dictionary <string, Variable>(); p = null; }