public TwitchSetting(SettingsPageControlleur a_settingcontrolleur, TwitchLive a_channel)
        {
            InitializeComponent();
            m_settingcontrolleur = a_settingcontrolleur;

            if (a_channel != null)
            {
                m_BufferChannel  = a_channel;
                ChannelLink.Text = a_channel.ChannelLink;
                ChannelImg.Text  = a_channel.ChannelImageLink;
            }
            else
            {
                m_BufferChannel  = new TwitchLive();
                ChannelLink.Text = "http://twitchrss.appspot.com/vod/NAME";
            }
        }
Beispiel #2
0
        public RedditSetting(SettingsPageControlleur a_settingcontrolleur, SubReddit a_Sred)
        {
            InitializeComponent();
            m_settingcontrolleur = a_settingcontrolleur;

            if (a_Sred != null)
            {
                m_BufferSred  = a_Sred;
                SredName.Text = a_Sred.SubRedditName;
                SredLink.Text = a_Sred.SubRedditLink;
            }
            else
            {
                m_BufferSred  = new SubReddit();
                SredName.Text = "Enter NAME";
                SredLink.Text = "https://www.reddit.com/r/NAME/.rss";
            }
        }
        public YTSetting(SettingsPageControlleur a_settingcontrolleur, YoutubeChannel a_channel)
        {
            InitializeComponent();
            m_settingcontrolleur = a_settingcontrolleur;

            if (a_channel != null)
            {
                m_BufferChannel  = a_channel;
                ChannelName.Text = a_channel.ChannelName;
                ChannelLink.Text = a_channel.ChannelLink;
                ChannelImg.Text  = a_channel.ChannelImageLink;
            }
            else
            {
                m_BufferChannel  = new YoutubeChannel();
                ChannelName.Text = "Enter NAME";
                ChannelLink.Text = "https://www.youtube.com/feeds/videos.xml?user=NAME";
            }
        }
Beispiel #4
0
 public SettingsPage()
 {
     InitializeComponent();
     m_controlleur = new SettingsPageControlleur(this);
     m_controlleur.LoadCurrentConfig();
 }