private void UpdateTest_Click(object sender, RoutedEventArgs e) { int numtest = Convert.ToInt32((((Button)sender).DataContext as BE.Test).NumTest); Window UpTestWindow = new UpTestWindow(numtest); UpTestWindow.Show(); this.Hide(); }
private void update_Click(object sender, RoutedEventArgs e) { Window UpTestWindow = new UpTestWindow(Convert.ToInt32(test.NumTest)); UpTestWindow.Show(); }