Ejemplo n.º 1
0
        protected void HandleIngestListReceived(Twitch.Broadcast.IngestList list)
        {
            mIngestListListbox.Items.Clear();

            for (int i = 0; i < list.Servers.Length; ++i)
            {
                IngestListEntry item = new IngestListEntry(list.Servers[i]);
                item.Default  = item.Server == list.DefaultServer;
                item.Selected = item.Server == mBroadcastController.IngestServer;
                mIngestListListbox.Items.Add(item);
            }
        }
Ejemplo n.º 2
0
        protected void HandleIngestListReceived(Twitch.Broadcast.IngestList list)
        {
            mIngestListListbox.Items.Clear();

            for (int i = 0; i < list.Servers.Length; ++i)
            {
                IngestListEntry item = new IngestListEntry(list.Servers[i]);
                item.Default = item.Server == list.DefaultServer;
                item.Selected = item.Server == mBroadcastController.IngestServer;
                mIngestListListbox.Items.Add(item);
            }
        }
Ejemplo n.º 3
0
        private void mIngestListListbox_Click(object sender, EventArgs e)
        {
            if (mIngestListListbox.SelectedItem == null)
            {
                return;
            }

            foreach (object obj in mIngestListListbox.Items)
            {
                (obj as IngestListEntry).Selected = false;
            }

            IngestListEntry entry = mIngestListListbox.SelectedItem as IngestListEntry;

            mBroadcastController.IngestServer = entry.Server;
            entry.Selected = true;

            RefreshListbox(mIngestListListbox);
        }