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(); }
public void Save(string fileName) { Filer.Filer Filer = new Filer.Filer(new Filer.Loader(), new Filer.Saver(), new Filer.Converter()); Filer.Save(fileName, TheGame); }