コード例 #1
0
        public void Load(string fileName)//Controller
        {
            Filer.Loader Loader = new Filer.Loader();
            Filer.Filer  Filer  = new Filer.Filer(new Filer.Loader(), new Filer.Saver(), new Filer.Converter());
            string       s      = Filer.Load(fileName);

            TheGame.Load(s);
            View.GridOfButton(TheGame.GetColumnCount(), TheGame.GetRowCount());
            UpdateView();
        }
コード例 #2
0
 public void Save(string fileName)
 {
     Filer.Filer Filer = new Filer.Filer(new Filer.Loader(), new Filer.Saver(), new Filer.Converter());
     Filer.Save(fileName, TheGame);
 }