private void Playlist_Click(object sender, RoutedEventArgs e) { PlaylistWindow playlistWindow = new PlaylistWindow(facade.GetSongsList()); playlistWindow.Owner = this; playlistWindow.Show(); }
// ----------- public static void Show( Window ownerWindow, Playlist playlist, IEnumerable <PlaylistTrack>?additionalTracks = null, Action?refreshOwner = null) { var window = new PlaylistWindow(playlist, additionalTracks, refreshOwner) { Owner = ownerWindow }; window.Show(); }