private void dock_Click(object sender, RoutedEventArgs e) { add_doc win = new add_doc(this, id_user); win.Show(); this.Hide(); }
private void dock_Click(object sender, RoutedEventArgs e) {//nrmlmnt machi par défaut add_doc win = new add_doc(this, id, t.get_id_user()); win.Show(); this.Hide(); }
private void add_Click(object sender, RoutedEventArgs e) { if (eve == null) { add_doc win = new add_doc(this, id_user, t.get_id()); win.Show(); } else { add_doc win = new add_doc(this, id_user, eve); win.Show(); } }
private void modif_Click(object sender, RoutedEventArgs e) { Button btn = (Button)sender; if (btn != null) { var st = FindParent <Grid>(btn); //stackpanel as we have added item as stackpanel. if (st != null) { int index = listBox.Items.IndexOf(st); add_doc win = new add_doc(this, this.list[index], user.getid_utilis()); win.Show(); } } }
private void dock_Click(object sender, RoutedEventArgs e) { add_doc doc = new add_doc(this, id_user); doc.Show(); }