Exemplo n.º 1
0
        private void SetButtonsImage()
        {
            {
                var type = FontAwesome.ParseType("PlayCircle");
                simpleButtonPlay.Image = FontAwesome.Instance.GetImage(
                    new FontAwesome.Properties(type)
                {
                    ForeColor   = Color.White,
                    Size        = 20,
                    BackColor   = Color.Transparent,
                    BorderColor = Color.Transparent,
                    ShowBorder  = false
                });
            }


            {
                var type = FontAwesome.ParseType("StopCircle");
                simpleButtonStop.Image = FontAwesome.Instance.GetImage(
                    new FontAwesome.Properties(type)
                {
                    ForeColor   = Color.White,
                    Size        = 20,
                    BackColor   = Color.Transparent,
                    BorderColor = Color.Transparent,
                    ShowBorder  = false
                });
            }

            {
                var type = FontAwesome.ParseType("StepBackward");
                simpleBtnPrevsFrame.Image = FontAwesome.Instance.GetImage(
                    new FontAwesome.Properties(type)
                {
                    ForeColor   = Color.White,
                    Size        = 20,
                    BackColor   = Color.Transparent,
                    BorderColor = Color.Transparent,
                    ShowBorder  = false
                });
            }
            {
                var type = FontAwesome.ParseType("StepForward");
                simpleBtnNextFrame.Image = FontAwesome.Instance.GetImage(
                    new FontAwesome.Properties(type)
                {
                    ForeColor   = Color.White,
                    Size        = 20,
                    BackColor   = Color.Transparent,
                    BorderColor = Color.Transparent,
                    ShowBorder  = false
                });
            }
        }
Exemplo n.º 2
0
 public void SetPlayStatus(bool PlayStatus)
 {
     this.bPlayStatus = PlayStatus;
     if (bPlayStatus)
     {
         var type = FontAwesome.ParseType("PauseCircle");
         simpleButtonPlay.Image = FontAwesome.Instance.GetImage(
             new FontAwesome.Properties(type)
         {
             ForeColor   = Color.White,
             Size        = 20,
             BackColor   = Color.Transparent,
             BorderColor = Color.Transparent,
             ShowBorder  = false
         });
     }
 }
Exemplo n.º 3
0
        private void simpleButtonPlay_Click(object sender, EventArgs e)
        {
            if (bPlayStatus)
            {
                {
                    var type = FontAwesome.ParseType("PlayCircle");
                    simpleButtonPlay.Image = FontAwesome.Instance.GetImage(
                        new FontAwesome.Properties(type)
                    {
                        ForeColor   = Color.White,
                        Size        = 20,
                        BackColor   = Color.Transparent,
                        BorderColor = Color.Transparent,
                        ShowBorder  = false
                    });
                }
                LogHelper.WriteLog(typeof(UserControlPlayWnd), "Pause Control:" + mSelectedVideoId);
                HNodeLib.VideoPlayControlPause(mSelectedVideoId);
                bPlayStatus = false;
            }
            else
            {
                {
                    var type = FontAwesome.ParseType("PauseCircle");
                    simpleButtonPlay.Image = FontAwesome.Instance.GetImage(
                        new FontAwesome.Properties(type)
                    {
                        ForeColor   = Color.White,
                        Size        = 20,
                        BackColor   = Color.Transparent,
                        BorderColor = Color.Transparent,
                        ShowBorder  = false
                    });
                }

                LogHelper.WriteLog(typeof(UserControlPlayWnd), "Play Control:" + mSelectedVideoId);
                HNodeLib.VideoPlayControl(mSelectedVideoId, 1);
                bPlayStatus = true;
            }
        }