Ejemplo n.º 1
0
        private void New(NewMessage msg)
        {
            HexMapCreationInputDialog dialog = new HexMapCreationInputDialog(
                "Title", "Label", 10, 5);

            if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                ApplicationModel.GameModel.ImportData(DataGeneration.GenerateGameData(dialog.Result.Item1, dialog.Result.Item2));
                ApplicationViewModel.GameViewModel.ApplyModel(ApplicationModel.GameModel);
            }
        }
Ejemplo n.º 2
0
 public ApplicationData(int colCount, int rowCount)
 {
     UIData   = DataGeneration.GenerateUIData();
     GameData = DataGeneration.GenerateGameData(colCount, rowCount);
 }