mirror of
https://github.com/ZuneDev/ZuneShell.dll.git
synced 2026-07-27 13:11:51 -07:00
51 lines
1.7 KiB
C#
51 lines
1.7 KiB
C#
// Decompiled with JetBrains decompiler
|
|
// Type: ZuneUI.CDLand
|
|
// Assembly: ZuneShell, Version=4.7.0.0, Culture=neutral, PublicKeyToken=ddd0da4d3e678217
|
|
// MVID: FC8028F3-A47B-4FB4-B35B-11D1752D8264
|
|
// Assembly location: C:\Program Files\Zune\ZuneShell.dll
|
|
|
|
namespace ZuneUI
|
|
{
|
|
public class CDLand : LibraryPage
|
|
{
|
|
private string _title = Shell.LoadString(StringId.IDS_NO_CD);
|
|
private CDAlbumCommand _album;
|
|
private PlaylistContentsPanel _burnListPanel;
|
|
|
|
public CDLand(CDAlbumCommand album)
|
|
{
|
|
this._album = album;
|
|
this.PivotPreference = album;
|
|
this.IsRootPage = true;
|
|
this.UI = "res://ZuneShellResources!CDView.uix#CDView";
|
|
this.ShowCDIcon = false;
|
|
this.ShowDeviceIcon = false;
|
|
this.ShowPlaylistIcon = false;
|
|
this.ShowNowPlayingBackgroundOnIdle = false;
|
|
this.PlaybackContext = PlaybackContext.Music;
|
|
this._burnListPanel = new PlaylistContentsPanel(this);
|
|
}
|
|
|
|
public override void InvokeSettings()
|
|
{
|
|
if (this.Album == Shell.MainFrame.Disc.BurnList)
|
|
Shell.SettingsFrame.Settings.Software.Invoke(SettingCategories.Burn);
|
|
else
|
|
Shell.SettingsFrame.Settings.Software.Invoke(SettingCategories.Rip);
|
|
}
|
|
|
|
public override IPageState SaveAndRelease() => new CDLandPageState(this);
|
|
|
|
protected override void OnDispose(bool disposing)
|
|
{
|
|
if (disposing)
|
|
this._burnListPanel.Dispose();
|
|
base.OnDispose(disposing);
|
|
}
|
|
|
|
public PlaylistContentsPanel BurnListPanel => this._burnListPanel;
|
|
|
|
public CDAlbumCommand Album => this._album;
|
|
}
|
|
}
|