Ejemplo n.º 1
0
 //---------------------------------------------------------------------------------------
 public bool OnMouseClick(MouseEventArgs e)
 {
     if (ButtonPlayPause != null && ButtonPlayPause.MouseHover)
     {
         if (e.Button == MouseButtons.Left && PlayerSmall.ButtonPlayPause_Click(_PlayerBase, this, AllowOpen))
         {
             PlayerSmall.StaticUpdateUI(this);
             OnChanged?.Invoke(this, EventArgs.Empty);
         }
         return(true);
     }
     if (ButtonStop != null && ButtonStop.MouseHover)
     {
         if (e.Button == MouseButtons.Left)
         {
             PlayerSmall.ButtonStop_Click();
             PlayerSmall.StaticUpdateUI(this);
             OnChanged?.Invoke(this, EventArgs.Empty);
         }
         return(true);
     }
     return(false);
 }
Ejemplo n.º 2
0
 public void OnPause()
 {
     PlayerSmall.StaticUpdateUI(this);
 }
Ejemplo n.º 3
0
 public void OnStop()
 {
     PlayerSmall.StaticUpdateUI(this);
 }
Ejemplo n.º 4
0
        //=========================================================================================
        // PlayerUserControl interface
        //

        //---------------------------------------------------------------------------------------
        public void OnOpen()
        {
            PlayerSmall.StaticUpdateUI(this);
        }
Ejemplo n.º 5
0
 public PlayerSmallData(PlayerSmall.DisplayModeEnum _displayMode = PlayerSmall.DisplayModeEnum.PlayPause)
 {
     DisplayMode = _displayMode;
     PlayerSmall.StaticUpdateUI(this);
 }
Ejemplo n.º 6
0
 public MyButton(PlayerSmall _owner, Image _image)
 {
     _Owner = _owner;
     Image  = _image;
 }