예제 #1
0
 public MediaCollection(HelperKinskyJukebox aHelper, DNodeCreated aNodeCreated, DProgressChanged aProgressChanged)
 {
     iCollectionDir   = aHelper.OptionPageSetup.CollectionLocation;
     iNodeCreated     = aNodeCreated;
     iProgressChanged = aProgressChanged;
     iHelper          = aHelper;
 }
예제 #2
0
 public Presets(HelperKinskyJukebox aHelper, TreeNodeCollection aUserCreatedNodes, DProgressChanged aProgressChanged, DNodeCreated aNodeCreated)
 {
     iPresetDir        = DirectoryPath(aHelper.OptionPageSetup);
     iManifestPath     = iPresetDir + "manifest.xml";
     iUserCreatedNodes = aUserCreatedNodes;
     iProgressChanged  = aProgressChanged;
     iNodeCreated      = aNodeCreated;
     iPlaylist         = new Playlist();
     iHelper           = aHelper;
 }
예제 #3
0
        public FormPrint(HelperKinskyJukebox aHelper, TreeView aPresets, bool aPreview, uint aPresetCount, DProgressChanged aProgressChanged)
        {
            iHelper                 = aHelper;
            iTreeViewPreset         = aPresets;
            iDocumentPreview        = aPreview;
            iPresetCount            = aPresetCount;
            iProgressChanged        = aProgressChanged;
            iUserOptionsApplication = aHelper.ApplicationOptions;
            InitializeComponent();
            if (aPreview)
            {
                this.Icon = Icon.FromHandle(Properties.Resources.PrintPreview.GetHicon());
            }
            else
            {
                this.Icon = Icon.FromHandle(Properties.Resources.Print.GetHicon());
            }

            int index = 0;

            printSectionCheckedListBox.Items.Add(ApplicationOptions.kToc);
            printSectionCheckedListBox.SetItemChecked(index++, iHelper.ApplicationOptions.IsPrintSectionEnabled(ApplicationOptions.kToc));
            foreach (TreeNode bookmark in aPresets.Nodes)
            {
                printSectionCheckedListBox.Items.Add(bookmark.Text);
                if (bookmark.Text == MediaCollection.SortTypeToString(MediaCollection.SortType.eAll))
                {
                    iAllIndex = index;
                }
                printSectionCheckedListBox.SetItemChecked(index++, iHelper.ApplicationOptions.IsPrintSectionEnabled(bookmark.Text));
            }
            switch (iUserOptionsApplication.PrintPageLayout)
            {
            case ApplicationOptions.PrintPageLayoutOptions.ePortraitWithTrackDetails: {
                iPageLayoutTrackDetailsPortrait.Checked = true;
                break;
            }

            case ApplicationOptions.PrintPageLayoutOptions.ePortraitWithoutTrackDetails: {
                iPageLayoutAlbumArtOnlyPortrait.Checked = true;
                break;
            }

            case ApplicationOptions.PrintPageLayoutOptions.eLandscapeWithTrackDetails: {
                iPageLayoutTrackDetailsLandscape.Checked = true;
                break;
            }

            case ApplicationOptions.PrintPageLayoutOptions.eLandscapeWithoutTrackDetails: {
                iPageLayoutAlbumArtOnlyLandscape.Checked = true;
                break;
            }
            }

            iPagesPerSheet.SelectedIndex = iUserOptionsApplication.PrintPagesPerSheetIndex;
            iPrintOrderBooklet.Checked   = iUserOptionsApplication.PrintOrderBooklet;

            if (iUserOptionsApplication.PrintDocumentType == ApplicationOptions.PrintDocumentTypeOptions.eRtf)
            {
                iDocTypeRtf.Checked = true;
            }
            else
            {
                iDocTypePdf.Checked = true;
            }
        }
예제 #4
0
 public Presets(HelperKinskyJukebox aHelper, TreeNodeCollection aUserCreatedNodes, DProgressChanged aProgressChanged) :
     this(aHelper, aUserCreatedNodes, aProgressChanged, null)
 {
 }