Пример #1
0
        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();
        }
Пример #2
0
 private void AttackRollDialogDoneClicked(object sender, RoutedEventArgs args)
 {
     AttackRollDialogPanel.Visibility = Visibility.Visible;
     DamageRollDialogPanel.Visibility = Visibility.Collapsed;
     AttackDialog.Hide();
 }