LoadModelFromDisc() public method

public LoadModelFromDisc ( ) : void
return void
示例#1
0
        public AudioCdSource (AudioCdService service, AudioCdDiscModel discModel)
            : base (Catalog.GetString ("Audio CD"), discModel.Title, 400)
        {
            this.service = service;
            this.disc_model = discModel;

            TypeUniqueId = "";

            Properties.SetString ("TrackView.ColumnControllerXml", String.Format (@"
                <column-controller>
                  <column>
                    <renderer type=""Hyena.Data.Gui.ColumnCellCheckBox"" property=""RipEnabled""/>
                  </column>
                  <add-all-defaults />
                </column-controller>
            "));

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

            SetupGui ();
        }
示例#2
0
        public AudioCdSource(AudioCdService service, AudioCdDiscModel discModel)
            : base(Catalog.GetString("Audio CD"), discModel.Title, 400)
        {
            this.service    = service;
            this.disc_model = discModel;

            TypeUniqueId = "";

            Properties.SetString("TrackView.ColumnControllerXml", String.Format(@"
                <column-controller>
                  <column>
                    <renderer type=""Hyena.Data.Gui.ColumnCellCheckBox"" property=""RipEnabled""/>
                  </column>
                  <add-all-defaults />
                </column-controller>
            "));

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

            SetupGui();
        }