Exemplo n.º 1
0
        private void button7_Click(object sender, EventArgs e)
        {
            string dir = Path.GetDirectoryName(Application.ExecutablePath) + @"\";

            Engine.State.Save(dir + "text.xml", false);
            Engine.State.Save(dir + "binary.txt", true);

            //var xmlState = EngineState.GetEngineState(dir + "text.xml", false);
            var binState = EngineState.GetEngineState(dir + "binary.txt", true);

            //xmlState.Save(dir + "in_out_xml.xml", false);
            binState.Save(dir + "in_out_bin.xml", true);
        }
Exemplo n.º 2
0
 public static void LoadEngineStateFile(string file, bool isBinary)
 {
     EngineState.GetEngineState(file, isBinary);
 }