Пример #1
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            UcAutreMateriel ctr = new UcAutreMateriel(fkiddemande);

            ctr.Closed += new EventHandler(galatee_Check);
            ctr.Show();
        }
        void galatee_Check(object sender, EventArgs e)
        {
            UcAutreMateriel ctrs = sender as UcAutreMateriel;

            if (ctrs.isOkClick)
            {
                int i = 1;
                lstAutreMateriel.Add((CsSortieAutreMateriel)ctrs.MyObject);

                dgDemande.ItemsSource = null;
            }
        }