private void Ajouter(object sender, RoutedEventArgs e) { FiliereEdit win = new FiliereEdit(); win.modifier.Visibility = Visibility.Hidden; win.supprimer.Visibility = Visibility.Hidden; win.ajouter.Visibility = Visibility.Visible; win.FilId.Visibility = Visibility.Hidden; win.Show(); }
private void MyCarousel_MouseDoubleClick(object sender, MouseButtonEventArgs e) { //int index = MyCarousel.Items.IndexOf(MyCarousel.SelectedItem); //mytext.Text = "Heeeeeey"; FiliereEdit win = new FiliereEdit(); this.Background = new SolidColorBrush(Color.FromRgb(240, 240, 240)); // this.Background = Brushes.Black; //this.Opacity = 0.8; win.Show(); var currentFiliere = this.MyCarousel.CurrentItem as Filiere; win.TextName.Text = currentFiliere.FiliereName; win.TextRespo.Text = currentFiliere.Responsable; win.TextId.Content = currentFiliere.Id; win.ajouter.Visibility = Visibility.Hidden; //this.AllowsTransparency = true; // WindowStyle = WindowStyle.None, // WindowState = WindowState.Maximized; }