You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
734 B
44 lines
734 B
using Microsoft.AspNetCore.Components;
|
|
using ProjetBlazor.Modeles;
|
|
|
|
namespace ProjetBlazor.Components
|
|
{
|
|
public partial class MusiqueRecipe
|
|
{
|
|
[Parameter]
|
|
public Musique musique { get; set; }
|
|
|
|
[CascadingParameter]
|
|
public DragAndDrop Parent { get; set; }
|
|
|
|
|
|
internal void OnDragEnter()
|
|
{
|
|
|
|
}
|
|
|
|
internal void OnDragLeave()
|
|
{
|
|
|
|
}
|
|
|
|
internal void OnDrop()
|
|
{
|
|
|
|
this.musique = Parent.CurrentDragMusique;
|
|
|
|
|
|
}
|
|
|
|
private void OnDragStart()
|
|
{
|
|
Parent.CurrentDragMusique = this.musique;
|
|
}
|
|
|
|
private void Reset()
|
|
{
|
|
this.musique = null;
|
|
}
|
|
}
|
|
}
|