private void start_Click(object sender, RoutedEventArgs e) { this.Top = (SystemParameters.FullPrimaryScreenHeight - 600) / 2; this.Left = (SystemParameters.FullPrimaryScreenWidth - 1200) / 2; logwindow.Begin(); mainMenu.BeginStoryboard(hide); puzzle_1.Visibility = System.Windows.Visibility.Visible; puzzle_1.BeginStoryboard(visible); p1 = new PazzlOne(); InitialePazzleOne(); }
// ---------------------------- PazzleThree ---------------------------- void InitializePazzleThree() { p1 = null; World.Children.Remove(puzzle_1); logo.BeginStoryboard(hide); p3 = new PuzzleThree(); foreach (var v in p3.GetLocation) { puzzle_3.Children.Add(v); } foreach (var v in p3.GetFigure) { puzzle_3.Children.Add(v); } puzzle_3.Visibility = System.Windows.Visibility.Visible; puzzle_3.BeginStoryboard(visible); System.Windows.Controls.Panel.SetZIndex(puzzle_3, 1); p3.WinPuzzle += P3_WinPuzzle; }