private void addEveniment_Click(object sender, RoutedEventArgs e) { AddEveniment form = new AddEveniment(); this.Hide(); form.ShowDialog(); incarcaEvenimente(); this.Show(); }
private void modifButton_Click(object sender, RoutedEventArgs e) { Button modifButton = (Button)sender; AddEveniment form = new AddEveniment((Evenimente)modifButton.Tag); this.Hide(); form.ShowDialog(); incarca(); ShowDialog(); }