예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
            }
        }
예제 #4
0
        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);
            }
        }