Exemplo n.º 1
0
 private void addGameToolStripMenuItem_Click(object sender, EventArgs e)
 {
     NewGame newGame = new NewGame();
     Game game;
     newGame.ShowDialog(this);
     if (newGame.DialogResult == DialogResult.OK)
     {
         game = new Game(newGame.GetGameName(), newGame.GetGenreSelector());
         newGame.Dispose();
         Commands.SetGame(game,this);
     }
     else
         newGame.Dispose();
 }
Exemplo n.º 2
0
 public static void SetGame(Game game, MainForm form)
 {
     Arrays.games.Add(game);
     form.treeView.Nodes.Add(game.GetGameName(), game.GetGameName());
 }
Exemplo n.º 3
0
 public Server(string server,string IP, Game _game)
 {
     serverName = server;
     dnsIP = IP;
     game = _game;
 }