Beispiel #1
0
        public Form1()
        {
            InitializeComponent();
            spotify = new SpotifyInterface();
            news    = new NewsInterface();
            try
            {
                spotify.Connect();
                lb_connected.Text = "Connected";
            }
            catch (Exception err)
            {
                lb_connected.Text = $"Error: {err.Message}";
            }

            cb_catagory.DataSource  = Enum.GetValues(typeof(NewsAPI.Constants.Categories));
            cb_country.DataSource   = Enum.GetValues(typeof(NewsAPI.Constants.Countries));
            cb_country.SelectedItem = NewsAPI.Constants.Countries.GB;
        }
Beispiel #2
0
 public Algorithm(SpotifyInterface Spotify, NewsInterface News)
 {
     spotify = Spotify;
     news    = News;
 }