Ejemplo n.º 1
0
 protected override void OnDispose(bool fDisposing)
 {
     base.OnDispose(fDisposing);
     if (!fDisposing)
     {
         return;
     }
     this._device   = null;
     this._cdAccess = null;
 }
Ejemplo n.º 2
0
 public CDAlbumCommand(
     Experience owner,
     CDAccess cdAccess,
     ZuneLibraryCDDevice device,
     bool insertedDuringSession)
     : base(owner, null, SQMDataId.DiscTitleClicks)
 {
     this._cdAccess = cdAccess;
     this._device   = device;
     this._insertedDuringSession = insertedDuringSession;
     this._TOC = device.TOC;
 }
Ejemplo n.º 3
0
        public void UpdateNodes(CDAccess cdAccess, char changedLetter, bool mediaArrived)
        {
            this.RecalculateAvailableNodes();
            CDAlbumCommand nodes1 = (CDAlbumCommand)this.NodesList[0];

            if (this.IsCurrent)
            {
                if (!(ZuneShell.DefaultInstance.CurrentPage is CDLand currentPage))
                {
                    return;
                }
                bool flag = false;
                if (currentPage.Album.CDDevice != null && currentPage.Album.CDDevice.DrivePath == changedLetter)
                {
                    flag = true;
                }
                if (!flag && (!mediaArrived || !this.NoCD.IsCurrent))
                {
                    return;
                }
                nodes1.Invoke();
            }
            else
            {
                if (!mediaArrived)
                {
                    return;
                }
                foreach (CDAlbumCommand nodes2 in NodesList)
                {
                    if (nodes2.CDDevice != null && nodes2.CDDevice.DrivePath == changedLetter)
                    {
                        this.Nodes.ChosenValue = nodes2;
                        break;
                    }
                }
            }
        }
Ejemplo n.º 4
0
 internal BurnableCD(CDAccess cdAccess, ZuneLibraryCDDevice device)
 {
     this._cdAccess = cdAccess;
     this._device   = device;
 }