public void onClick_Modifier_Client(Object sender, RoutedEventArgs e) { if(Client_Grid.SelectedItem != null) { Particulier p = Client_Grid.SelectedItem as Particulier; ModifierClient modif = new ModifierClient(p, ressources, Client_Grid); modif.Show(); } }
private void boutton_Modifier_Client_Click(object sender, RoutedEventArgs e) { ModifierClient modif = new ModifierClient(client, r, dataclient); modif.Show(); this.Close(); }