Пример #1
0
        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;
        }
Пример #2
0
        private void addPlaylist()
        {
            CreatePlaylist NewPlaylist = new CreatePlaylist();

            NewPlaylist.ShowDialog();
        }