Exemplo n.º 1
0
 public void start(bool load)
 {
     //Startet den Thread     
     if (!load)
     {
         saveAndLoad.LadeSpielstand = null;
     }
     ucc.HideUserControl(myUserControls.Hauptmenue);
     ucc.HideUserControl(myUserControls.Spielstaende);
     shopForm = null;
     quizForm = null;
     ausgehform = null;
     formMenue = null;
     this.Width = originWidth;
     this.Height = originHeight;
     gameClass = new game(this, load); 
     Thread gameThread = new Thread(gameClass.start);
     pictureBoxStop_Click(this, new EventArgs());
     gameThread.IsBackground = true;
     gameThread.Name = "spielThread";
     gameThread.Start();
     this.BringToFront();
     if (gameClass.quizAbklingzeit > 0)
     {
         QuizEnabled = false;
         label_QuizZeit.Visible = true;
     }
     else
     {
         QuizEnabled = true;
         label_QuizZeit.Visible = false;
     }
     ucc = new UserControlControler();
 }
Exemplo n.º 2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     //Das Hauptmenü wird angezeigt
     ucc = new UserControlControler();
     ucc.ShowUserControl(myUserControls.Hauptmenue, this, true);//Das Hauptmenü wird angezeigt
 }