private void stage3buttton_Click(object sender, RoutedEventArgs e) { string buttonNumber = (sender as Button).Name.Substring(7, 1); theGame.PickedPile = Int32.Parse(buttonNumber); theGame.Stage = 4; Stage4 stage4 = new Stage4(); PageSwitcher.Switch(this, stage4); theGame.StartStage(stage4, 1); UpdateStatusBar(theGame.Stage); }
public async void ShowGuessedCard(Page stagePage, int pickedPile) { Stage4 stage4 = stagePage as Stage4; await Task.Delay(500); stage4.dock02.Children.Add(cardModel.SpinCard(pile[pickedPile - 1][3], false)); await Task.Delay(500); for (int i = 3; i > 0; i--) { stage4.textCountdown.Text = i.ToString(); await Task.Delay(500); stage4.textCountdown.Text = ""; } await Task.Delay(100); stage4.dock02.Children.Clear(); stage4.dock02.Children.Add(cardModel.SpinCard(pile[pickedPile - 1][3], true)); }