private void importSong() { ImportSongWindow import = new ImportSongWindow(); import.ShowDialog(); updateSonglist(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.importWindow = ((MediaPlayer.ImportSongWindow)(target)); return; case 2: this.ComboBox = ((System.Windows.Controls.ComboBox)(target)); return; } this._contentLoaded = true; }