Ejemplo n.º 1
0
 private void DoPlayBoxStateChanged(PlayBoxCtrl playbox)
 {
     if (playbox != null && playbox == ActivePlayBox)
     {
         RefreshVSInfo(playbox);
     }
 }
Ejemplo n.º 2
0
 private void DoActiveBoxChanging(PlayBoxCtrl box)
 {
     if (box != null)
     {
         box.BorderStyle = BorderStyle.FixedSingle;
     }
 }
Ejemplo n.º 3
0
 private bool InitBox(PlayBoxCtrl box)
 {
     box.BorderStyle              = BorderStyle.FixedSingle;
     box.OnPlayBoxLinkObjChanged += new PlayBoxEventHandle(DoPlayBoxStateChanged);
     box.OnPlayBoxStateChanged   += new PlayBoxEventHandle(DoPlayBoxStateChanged);
     box.MouseClick       += new MouseEventHandler(PlayBoxMouseClick);
     box.MouseDoubleClick += new MouseEventHandler(PlayBoxMouseDoubleClick);
     return(true);
 }
Ejemplo n.º 4
0
        private void DoActiveBoxChanged(PlayBoxCtrl box)
        {
            if (box != null)
            {
                box.BorderStyle = BorderStyle.Fixed3D;
            }

            RefreshVSInfo(box);
        }
Ejemplo n.º 5
0
        private void RefreshVSInfo(PlayBoxCtrl playbox)
        {
            toolStripLabel_vsName.Text = "";

            if (playbox != null)
            {
                CFuncNode node = playbox.LinkObj as CFuncNode;
                if (node != null)
                {
                    IVideoSourceConfig vsConfig = node.ExtConfigObj as IVideoSourceConfig;
                    if (vsConfig != null)
                    {
                        toolStripLabel_vsName.Text = "¡°" + node.OriginText + "¡±";

                        IVideoSource vs = node.ExtObj as IVideoSource;
                        if (vs != null)
                        {
                            toolStripButton_open.Visible  = !vs.IsOpen;
                            toolStripButton_play.Visible  = !vs.IsPlay;
                            toolStripButton_stop.Visible  = vs.IsPlay;
                            toolStripButton_close.Visible = vs.IsOpen;

                            if (vs.PlayStatus == PlayState.Play || vs.PlayStatus == PlayState.Pause)
                            {
                                playbox.IsShowInfo = false;
                            }
                            else if (vs.PlayStatus == PlayState.Stop)
                            {
                                playbox.IsShowInfo = false;
                            }
                            else
                            {
                                playbox.IsShowInfo = true;
                            }
                        }
                        else
                        {
                            toolStripButton_open.Visible  = true;
                            toolStripButton_play.Visible  = false;
                            toolStripButton_stop.Visible  = false;
                            toolStripButton_close.Visible = false;
                        }

                        toolStripButton_fl.Visible      = true;
                        toolStripSeparator_fl_1.Visible = true;
                    }
                }
                else
                {
                    toolStripButton_open.Visible  = false;
                    toolStripButton_play.Visible  = false;
                    toolStripButton_stop.Visible  = false;
                    toolStripButton_close.Visible = false;

                    toolStripButton_fl.Visible      = false;
                    toolStripSeparator_fl_1.Visible = false;
                }
            }
            else
            {
                toolStripButton_open.Visible  = false;
                toolStripButton_play.Visible  = false;
                toolStripButton_stop.Visible  = false;
                toolStripButton_close.Visible = false;

                toolStripButton_fl.Visible      = false;
                toolStripSeparator_fl_1.Visible = false;
            }
        }