Esempio n. 1
0
        public void InitCombo()
        {
            for (long i = 0; i < 21; i++)
            {
                cboRating.Items.Add(i);
            }

            cboMedia.ItemsSource    = MediaServices.GetNames();
            cboLanguage.ItemsSource = LanguageServices.GetLanguages();
            cboEditor.DataContext   = PublisherServices.GetPublishers("App_Editor");
            cboFormat.ItemsSource   = BookServices.GetFormats();
        }
 public void InitCombo()
 {
     try
     {
         cboRating.ItemsSource   = Enumerable.Range(1, 20);
         CboMedia.ItemsSource    = MediaServices.GetNames();
         CboLanguage.ItemsSource = LanguageServices.GetLanguages();
         CboEditor.DataContext   = PublisherServices.GetPublishers("App_Editor");
     }
     catch (Exception ex)
     {
         Util.LogException(ex);
         new MessageBoxYesNo(ex.Message, false, true).ShowDialog();
     }
 }
Esempio n. 3
0
        public void InitCombo()
        {
            try
            {
                for (int i = 0; i < 21; i++)
                {
                    cboRating.Items.Add(i);
                }

                cboMedia.ItemsSource  = MediaServices.GetNames();
                cboStudio.ItemsSource = PublisherServices.GetPublishers("Movie_Studio");
            }
            catch (Exception ex)
            {
                Util.LogException(ex);
                new MessageBoxYesNo(ex.Message, false, true).ShowDialog();
            }
        }
Esempio n. 4
0
        public void InitCombo()
        {
            try
            {
                for (int i = 0; i < 21; i++)
                {
                    cboRating.Items.Add(i);
                }

                cboMedia.ItemsSource    = MediaServices.GetNames();
                cboLanguage.ItemsSource = LanguageServices.GetLanguages();
                cboEditor.DataContext   = PublisherServices.GetPublishers("XXX_Studio");
            }
            catch (Exception ex)
            {
                Util.LogException(ex);
                new MessageBoxYesNo(ex.Message, false, true).ShowDialog();
            }
        }
Esempio n. 5
0
        private IList GetStudios()
        {
            switch (_entityType)
            {
            case EntityType.Apps:
            case EntityType.Books:
            case EntityType.Games:
            case EntityType.Nds:
                return(PublisherServices.GetPublishers("App_Editor"));

            case EntityType.Movie:
            case  EntityType.Series:
                return(PublisherServices.GetPublishers("Movie_Studio"));

            case EntityType.Music:
                return(PublisherServices.GetPublishers("Music_Studio"));

            case EntityType.XXX:
                return(PublisherServices.GetPublishers("XXX_Studio"));

            default:
                return(null);
            }
        }
Esempio n. 6
0
        public IActionResult GetPublishers()
        {
            var publishers = _publisherServices.GetPublishers();

            return(Ok(publishers));
        }