protected override void OnDispose(bool fDisposing) { base.OnDispose(fDisposing); if (!fDisposing) { return; } this._device = null; this._cdAccess = null; }
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; }
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; } } } }
internal BurnableCD(CDAccess cdAccess, ZuneLibraryCDDevice device) { this._cdAccess = cdAccess; this._device = device; }