Exemplo n.º 1
0
        public IntereactionSelect(VideoClass.episode epin)
        {
            InitializeComponent();
            var materialSkinManager = MaterialSkinManager.Instance;

            materialSkinManager.AddFormToManage(this);
            Other.RefreshColorSceme();
            ep           = epin;
            aid          = ep.aid;
            cid          = ep.cid;
            graphversion = ep.interactionVersion;

            if (!ep.isinteractive)
            {
                Close();
                Dispose();
            }

            //获取互动视频的Cookie
            cookie = User.cookie;
            IntereactiveVideo v = new IntereactiveVideo();

            v.aid    = aid;
            v.cid    = cid;
            v.name   = "视频开始";
            v.nodeid = "1";
            videos.Add(v);
            LoadEdge();
        }
Exemplo n.º 2
0
        private void SelectAnswer(object sender, EventArgs e)
        {
            InteractiveSelectButton btn = (InteractiveSelectButton)sender;

            foreach (Button button in buttons)
            {
                if (button.id != btn.uniqueid)
                {
                    continue;
                }

                IntereactiveVideo v = new IntereactiveVideo
                {
                    aid    = aid,
                    cid    = button.cid,
                    name   = btn.Text,
                    nodeid = button.edgeid
                };
                edgeid = button.edgeid;
                cid    = button.cid;
                videos.Add(v);
                LoadEdge();
                break;
            }
        }