示例#1
0
        private void addsong()
        {
            AddMusicWindow addMusicWindow = new AddMusicWindow();

            addMusicWindow.ShowDialog();
            updateSonglist();
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.addMusicWindows = ((MediaPlayer.AddMusicWindow)(target));
                return;

            case 2:
                this.LinkTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 3:
                this.ComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;
            }
            this._contentLoaded = true;
        }