/// <summary> /// Handles the Click event of the Annuleren 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 Annuleren_Click(object sender, RoutedEventArgs e) { Artiest a = new Artiest(); a.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; string sValue = ""; if (oDataRowView != null) { sValue = oDataRowView.Row["Naam"] as string; } Artiest a = new Artiest(); a.Show(); this.Close(); }