コード例 #1
0
ファイル: AudioCdSource.cs プロジェクト: gclark916/banshee
        public AudioCdSource (AudioCdService service, AudioCdDiscModel discModel)
            : base ((DiscService) service, (DiscModel) discModel, Catalog.GetString ("Audio CD"), discModel.Title, 59)
        {
            TypeUniqueId = "";
            Properties.SetString ("TrackView.ColumnControllerXml", String.Format (@"
                <column-controller>
                  <column>
                    <renderer type=""Hyena.Data.Gui.ColumnCellCheckBox"" property=""RipEnabled""/>
                  </column>
                  <add-all-defaults />
                </column-controller>
            "));

            Model.MetadataQueryStarted += OnMetadataQueryStarted;
            Model.MetadataQueryFinished += OnMetadataQueryFinished;
            Model.EnabledCountChanged += OnEnabledCountChanged;
            Model.LoadModelFromDisc ();

            SetupGui ();
        }
コード例 #2
0
        public AudioCdSource(AudioCdService service, AudioCdDiscModel discModel)
            : base((DiscService)service, (DiscModel)discModel, Catalog.GetString("Audio CD"), discModel.Title, 59)
        {
            TypeUniqueId = "";
            Properties.SetString("TrackView.ColumnControllerXml", String.Format(@"
                <column-controller>
                  <column>
                    <renderer type=""Hyena.Data.Gui.ColumnCellCheckBox"" property=""RipEnabled""/>
                  </column>
                  <add-all-defaults />
                </column-controller>
            "));

            Model.MetadataQueryStarted  += OnMetadataQueryStarted;
            Model.MetadataQueryFinished += OnMetadataQueryFinished;
            Model.EnabledCountChanged   += OnEnabledCountChanged;
            Model.LoadModelFromDisc();

            SetupGui();
        }