public AmpachePreferences(AmpacheSource source)
 {
     var service = ServiceManager.Get<PreferenceService> ();
     if (service == null) {
         return;
     }
     source_page = new SourcePage(source);
     account_section = new Section("ampache-account", "Account", 20);
     //account_section.Add(AmpacheSource.AmpacheRootAddress);
     //account_section.Add(AmpacheSource.UserName);
     //account_section.Add(AmpacheSource.UserPassword);
     source_page.Add(account_section);
     //account_section["ampache-account"].DisplayWidget = new PreferenceView();
     var view = new PreferenceView();
     source_page.DisplayWidget = view;// = new PreferenceView();
 }
Example #2
0
        public AmpachePreferences(AmpacheSource source)
        {
            var service = ServiceManager.Get <PreferenceService> ();

            if (service == null)
            {
                return;
            }
            source_page     = new SourcePage(source);
            account_section = new Section("ampache-account", "Account", 20);
            //account_section.Add(AmpacheSource.AmpacheRootAddress);
            //account_section.Add(AmpacheSource.UserName);
            //account_section.Add(AmpacheSource.UserPassword);
            source_page.Add(account_section);
            //account_section["ampache-account"].DisplayWidget = new PreferenceView();
            var view = new PreferenceView();

            source_page.DisplayWidget = view;// = new PreferenceView();
        }