public void Save() { ViewModelFileDialog iLoadSaveService = new ViewModelFileDialog(); iLoadSaveService.Extension = "*.pazat"; iLoadSaveService.Filter = "Replay file (.pazat)|*.pazat"; iLoadSaveService.SaveCommand.Execute(null); endGame.Save(iLoadSaveService.SelectedPath, winnerNb); }
public void Save() { ViewModelFileDialog iLoadSaveService = new ViewModelFileDialog(); iLoadSaveService.Extension = "*.blouin"; iLoadSaveService.Filter = "Save file (.blouin)|*.blouin"; iLoadSaveService.SaveCommand.Execute(null); Game.Save(iLoadSaveService.SelectedPath, -1); }
public void ReplayGame() { ViewModelFileDialog iLoadSaveService = new ViewModelFileDialog(); iLoadSaveService.Extension = "*.pazat"; iLoadSaveService.Filter = "Replay file (.pazat)|*.pazat"; iLoadSaveService.OpenCommand.Execute(null); if (iLoadSaveService.SelectedPath != null && iLoadSaveService.SelectedPath != "") { refMain.ViewReplayCommand(iLoadSaveService.SelectedPath); } }
public void LoadGame() { ViewModelFileDialog iLoadSaveService = new ViewModelFileDialog(); iLoadSaveService.Extension = "*.blouin"; iLoadSaveService.Filter = "Save file (.blouin)|*.blouin"; iLoadSaveService.OpenCommand.Execute(null); if (iLoadSaveService.SelectedPath != null && iLoadSaveService.SelectedPath != "") { refMain.ViewLoadCommand(iLoadSaveService.SelectedPath); } }