} // internal void restoreMap(string filename) private string readMapConfig(string filename) //invoke from restoreMap method: string cfg = readMapConfig(filename); // from VFileStorage // return json string from save { var stor = new VFileStorage(log); stor.open(filename); string cfg = stor.read(); log(string.Format("VRestore.readMapConfig, cfg [{0}]", cfg)); return(cfg); //throw new Exception("VRestore.readMapConfig, not yet"); }
internal void deleteMap(string filename) { var stor = new VFileStorage(log); stor.open(filename); string cfg = stor.read(); log(string.Format("VRestore.deleteMap, fname [{0}], content [{1}]", filename, cfg)); stor.delete(filename); return; //restoreWnd.listBox1.Items.Clear(); //var saves = getSavesList(); //foreach(string fn in saves) { //restoreWnd.listBox1.Items.Add(fn); //} } // internal void deleteMap(string filename)