public UnDo Deserialize(string file) { StreamReader reader = new StreamReader(file); UnDo control = (UnDo)serializer.Deserialize(reader); reader.Close(); return(control); }
// read the undo file private void getUnDo() { undo = new UnDo(); if ((new FileInfo(undofile)).Exists) { undo = undo.Deserialize(undofile); } }
// read the undo file private void getUnDo() { undo = new UnDo(); if ((new FileInfo(undofile)).Exists) undo = undo.Deserialize(undofile); }