public void MainMenu(Game game) { if(mainMenu.StartA) { currentProgramState = GameState.ProjektA; projektBoll = new ProjectA_Boll(game); mainMenu.StartA = false; } else if (mainMenu.StartB) { currentProgramState = GameState.ProjektB; projektBox = new ProjektB_Box(game); mainMenu.StartB = false; } else if (mainMenu.StartC) { currentProgramState = GameState.ProjektC; projektKurva = new ProjektC_Kurva(game); mainMenu.StartC = false; } else if (mainMenu.Exit) { game.Exit(); } }
public Form1(ProjectA_Boll game) { this.project = game; InitializeComponent(); }
public ProjektAForm(ProjectA_Boll projektA) { this.project = projektA; InitializeComponent(); }