コード例 #1
0
        public UnDo Deserialize(string file)
        {
            StreamReader reader  = new StreamReader(file);
            UnDo         control = (UnDo)serializer.Deserialize(reader);

            reader.Close();
            return(control);
        }
コード例 #2
0
ファイル: Course.cs プロジェクト: sjhalasz/Tutorials
 // read the undo file
 private void getUnDo()
 {
     undo = new UnDo();
     if ((new FileInfo(undofile)).Exists)
     {
         undo = undo.Deserialize(undofile);
     }
 }
コード例 #3
0
ファイル: Course.cs プロジェクト: sjhalasz/Tutorials
 // read the undo file
 private void getUnDo()
 {
     undo = new UnDo();
     if ((new FileInfo(undofile)).Exists)
         undo = undo.Deserialize(undofile);
 }