//--------------------------------------------------------------------------------------- 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); }
public void OnPause() { PlayerSmall.StaticUpdateUI(this); }
public void OnStop() { PlayerSmall.StaticUpdateUI(this); }
//========================================================================================= // PlayerUserControl interface // //--------------------------------------------------------------------------------------- public void OnOpen() { PlayerSmall.StaticUpdateUI(this); }
public PlayerSmallData(PlayerSmall.DisplayModeEnum _displayMode = PlayerSmall.DisplayModeEnum.PlayPause) { DisplayMode = _displayMode; PlayerSmall.StaticUpdateUI(this); }
public MyButton(PlayerSmall _owner, Image _image) { _Owner = _owner; Image = _image; }