Пример #1
0
        public UnDo Deserialize(string file)
        {
            StreamReader reader  = new StreamReader(file);
            UnDo         control = (UnDo)serializer.Deserialize(reader);

            reader.Close();
            return(control);
        }
Пример #2
0
 // read the undo file
 private void getUnDo()
 {
     undo = new UnDo();
     if ((new FileInfo(undofile)).Exists)
     {
         undo = undo.Deserialize(undofile);
     }
 }
Пример #3
0
 // read the undo file
 private void getUnDo()
 {
     undo = new UnDo();
     if ((new FileInfo(undofile)).Exists)
         undo = undo.Deserialize(undofile);
 }