private void EditClick(object sender, RoutedEventArgs e) { Button button = (Button)sender; Class cl = (Class)button.DataContext; EditClass edit = new EditClass(cl); edit.Show(); }
private void AddClassClick(object sender, RoutedEventArgs e) { EditClass editClass = new EditClass(); editClass.Show(); }