Esempio 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);
 }
Esempio n. 2
0
 public void OnPause()
 {
     PlayerSmall.StaticUpdateUI(this);
 }
Esempio n. 3
0
        //=========================================================================================
        // PlayerUserControl interface
        //

        //---------------------------------------------------------------------------------------
        public void OnOpen()
        {
            PlayerSmall.StaticUpdateUI(this);
        }
Esempio n. 4
0
 public void OnStop()
 {
     PlayerSmall.StaticUpdateUI(this);
 }
Esempio n. 5
0
 public PlayerSmallData(PlayerSmall.DisplayModeEnum _displayMode = PlayerSmall.DisplayModeEnum.PlayPause)
 {
     DisplayMode = _displayMode;
     PlayerSmall.StaticUpdateUI(this);
 }