示例#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);
 }
示例#2
0
 public void OnPause()
 {
     PlayerSmall.StaticUpdateUI(this);
 }
示例#3
0
 public void OnStop()
 {
     PlayerSmall.StaticUpdateUI(this);
 }
示例#4
0
        //=========================================================================================
        // PlayerUserControl interface
        //

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