void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.createPlaylistWindow = ((MediaPlayer.CreatePlaylist)(target)); return; case 2: this.NewPlaylistTextBox = ((System.Windows.Controls.TextBox)(target)); return; } this._contentLoaded = true; }
private void addPlaylist() { CreatePlaylist NewPlaylist = new CreatePlaylist(); NewPlaylist.ShowDialog(); }