public async void ShowAttackDialogAsync(object sender, RoutedEventArgs e) { if ((sender as Button).Content.Equals("Roll Damage")) { AttackRollDialogPanel.Visibility = Visibility.Collapsed; DamageRollDialogPanel.Visibility = Visibility.Visible; AttackDialog.IsPrimaryButtonEnabled = false; } await AttackDialog.ShowAsync(); }
private void AttackRollDialogDoneClicked(object sender, RoutedEventArgs args) { AttackRollDialogPanel.Visibility = Visibility.Visible; DamageRollDialogPanel.Visibility = Visibility.Collapsed; AttackDialog.Hide(); }