예제 #1
0
파일: Engine.cs 프로젝트: JellyBitz/PxBook
        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();
            }
        }
예제 #2
0
파일: Engine.cs 프로젝트: JellyBitz/PxBook
 public Engine()
 {
     variables = new Dictionary <string, Variable>();
     p         = null;
 }