private void Rejet_Click(object sender, RoutedEventArgs e) { FrAnotation ctr = new FrAnotation(); ctr.Closed += new EventHandler(galatee_OkClickedMotif); ctr.Show(); }
private void galatee_OkClickedMotif(object sender, EventArgs e) { FrAnotation leMotifRejet = sender as FrAnotation; if (!string.IsNullOrEmpty(leMotifRejet.txtAnnotation.Text)) { motifRejet = leMotifRejet.txtAnnotation.Text; ValidationRejetDemande(Lademande); } }