예제 #1
0
 public void SaveGame()
 {
     try
     {
         string file = FilerView.Save();
         Filer.Save(file, GameFileable);
     }
     catch (ArgumentException e)
     {
         GameView.Display(e.Message);
     }
 }
예제 #2
0
 public void Save()
 {
     try
     {
         string filename = FilerView.Save();
         Filer.Save(filename, GameFileable);
     }
     catch (ArgumentException e)
     {
         FilerView.Display(e);
     }
 }
예제 #3
0
 public void SaveDesign()
 {
     try
     {
         if (Designer.checkValid())
         {
             string file = FilerView.Save();
             Filer.Save(file, DesignerFileable);
         }
     }
     catch (ArgumentException e)
     {
         DesignerView.Display(e.Message);
     }
 }