/// <summary> /// Handles the Click event of the btnAnnuleren control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param> private void btnAnnuleren_Click(object sender, RoutedEventArgs e) { song s = new song(); s.Show(); this.Close(); }
/// <summary> /// Handles the DoubleClick event of the Row control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="MouseButtonEventArgs"/> instance containing the event data.</param> private void Row_DoubleClick(object sender, MouseButtonEventArgs e) { DataGridRow row = sender as DataGridRow; DataRowView oDataRowView = dgData.SelectedItem as DataRowView; if (oDataRowView != null) { songName = oDataRowView.Row["titel"] as string; ArtiestName = oDataRowView.Row["naam"] as string; } song s = new song(); s.Show(); this.Close(); }