public _frmHauptmenue() { InitializeComponent(); _sudokus = new DataSet(); _sudokus.ReadXml(Application.StartupPath + "\\spiele.xml"); //Controls einfangen und in Variablen werfen foreach (Control ctrl in Controls) { if (ctrl is _ucSudokuSpielAuswahl) { _spielAuswahl = (_ucSudokuSpielAuswahl)ctrl; } } _ucMeldung1.Hauptmenue = this; _ucSudokuErstellen1.Hauptmenue = this; _ucSudokuErstellen1.Zahlenauswahl = _ucZahlenAuswahl1; _ucSudokuSpielAuswahl1.Hauptmenue = this; _ucSpiel.Hauptmenue = this; _ucSpiel.ZahlenAuswahl = _ucZahlenAuswahl1; _ucZahlenAuswahl1.Hauptmenue = this; _spielAuswahl.Sudokus = _sudokus; _spielAuswahl.VerfuegbareSudokusAnzeigen(); ToolTipInitialisieren(); MeldungZeigen("Hallo ich bin Leonie", "Ich gebe dir ein paar Tipps. Klick auf den Grünen Haken um dir ein Sudoku auszusuchen.", false); }
public _frmHauptmenue() { InitializeComponent(); _sudokus = new DataSet(); _sudokus.ReadXml(Application.StartupPath + "\\spiele.xml"); _spielAuswahl = _ucSudokuSpielAuswahl1; _ucMeldung1.Hauptmenue = this; _ucSudokuErstellen1.Hauptmenue = this; _ucSudokuErstellen1.Zahlenauswahl = _ucZahlenAuswahl1; _ucSudokuSpielAuswahl1.Hauptmenue = this; _ucSpiel.Hauptmenue = this; _ucSpiel.ZahlenAuswahl = _ucZahlenAuswahl1; _ucZahlenAuswahl1.Hauptmenue = this; _ucSudokuErstellenAutomatisch1.UCSudokuErstellen = _ucSudokuErstellen1; _ucSudokuErstellenAutomatisch1.Hauptmenue = this; _spielAuswahl.Sudokus = _sudokus; _spielAuswahl.VerfuegbareSudokusAnzeigen(); ToolTipInitialisieren(); MeldungZeigen("Hallo ich bin Leonie", "Ich gebe dir ein paar Tipps. Du bist im Hauptmenü.", false); }