private void Window_Loaded(object sender, RoutedEventArgs e) { this.Hide(); BassNet.Registration("*****@*****.**", "2X22292815172922"); nowPlaying.Artist.Text = String.Empty; nowPlaying.Song.Text = String.Empty; nowPlaying.parent = this; menuBar.parent = this; playList.parent = this; player = new Vimae.Player(); player.Played += new EventHandler(player_Played); player.Stopped += new EventHandler(player_Stopped); player.QueueModified += new EventHandler(player_QueueModified); Loading win = new Loading(); win.ShowModeless(new ThreadStart(LoadLibrary)); progressTimer = new DispatcherTimer(); progressTimer.Interval = new TimeSpan(1000); // This equals to 1 second, some tweaking may be necessary. //- WedTM progressTimer.Tick += new EventHandler(progressTimer_Tick); progressTimer.Start(); nowPlaying.Visibility = Visibility.Visible; nowPlaying.MetaData.Visibility = Visibility.Hidden; this.Show(); }