/// <summary> /// az adott pályát indító metódus /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnSelectLevelClick(object sender, RoutedEventArgs e) { Button btn = (Button)sender; this.level = int.Parse(btn.Content.ToString()); BoardPage boardPage = new BoardPage(this.mainFrame, this.level); this.mainFrame.Content = boardPage; }
private void Replay_Click(object sender, RoutedEventArgs e) { BoardPage boardPage = new BoardPage(this.mainFrame, this.Level); this.mainFrame.Content = boardPage; }