private void btnSearch_Click(object sender, RoutedEventArgs e) { ViewSongs viewSongs = new ViewSongs(Convert.ToInt32(ComboBoxSongNameSearch.SelectedValue), Convert.ToInt32(ComboBoxArtistNameSearch.SelectedValue), Convert.ToInt32(ComboBoxBookNameSearch.SelectedValue), TextBoxSongNameSearch.Text.Trim(), TextBoxArtistNameSearch.Text.Trim(), TextBoxBookNameSearch.Text.Trim()); //this.Hide(); viewSongs.ShowDialog(); this.Show(); }
private void btnReviewData_Click(object sender, RoutedEventArgs e) { try { ViewSongs viewSongs = new ViewSongs(); this.Hide(); viewSongs.ShowDialog(); this.Show(); } catch (Exception ex) { #if (DEBUG) Logger.LogError(ex, showDialog: true); #else Logger.LogError(ex); #endif } }