public Congratulation(int level, Canvas can, MainWindow mw) { InitializeComponent(); Level.Text = "Level " + level.ToString(); canvas = can; mainWindow = mw; mainWindow.StopTimers(); }
public void Pause() { mainWindow.StopTimers(); rec = new Rectangle(); rec.Fill = Brushes.Black; rec.Opacity = 0.5; rec.Width = mainWindow.Width; rec.Height = mainWindow.Height; canvas.Children.Add(rec); }