Exemplo n.º 1
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 ();
        }
Exemplo n.º 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();
        }