Exemplo n.º 1
0
        private void TestDetailsDmg_Click(object sender, RoutedEventArgs e)
        {
            DetailsAttaqueView detailsAttaqueView = new DetailsAttaqueView();

            if (detailsAttaqueView.ShowDialog() == true)
            {
                MessageBox.Show("VRAI!!");
                AttaqueInfoVM viewModel = (AttaqueInfoVM)detailsAttaqueView.DataContext;
            }
            else
            {
                MessageBox.Show("FAUX!!");
            }
        }
        private void Modifier_Click(object sender, RoutedEventArgs e)
        {
            DetailsAttaqueView detailsAttaqueView = new DetailsAttaqueView();

            detailsAttaqueView.ShowDialog();
        }