classes pour mvp
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using Microsoft.Kinect;
|
||||
using JeuHoy_WPF_Natif.Presenter;
|
||||
using JeuHoy_WPF_Natif.View;
|
||||
using Microsoft.Kinect;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@@ -17,20 +19,28 @@ namespace JeuHoy_WPF.View
|
||||
/// Description: Permet de faire l'entrainement des différentes figures de danse.
|
||||
/// Date: 2023-04-17
|
||||
/// </summary>
|
||||
public partial class wEntrainement : Window
|
||||
public partial class wEntrainement : Window, IwEntrainement
|
||||
{
|
||||
|
||||
private Dictionary<string, BitmapImage> _dicImgFigure = new Dictionary<string, BitmapImage>();
|
||||
private JouerSon _son = new JouerSon();
|
||||
private int _positionEnCours = 1;
|
||||
|
||||
private PresentateurWEntrainement _presentateur;
|
||||
|
||||
/// <summary>
|
||||
/// Constructeur
|
||||
/// </summary>
|
||||
public wEntrainement()
|
||||
public event EventHandler EntrainementEvt;
|
||||
|
||||
public Image Image { get => picKinect; set => picKinect = value; }
|
||||
public string Console { get => txtConsole.Text; set => txtConsole.Text = value; }
|
||||
public Canvas Canvas { get => pDessinSquelette; set => pDessinSquelette = value; }
|
||||
|
||||
/// <summary>
|
||||
/// Constructeur
|
||||
/// </summary>
|
||||
public wEntrainement()
|
||||
{
|
||||
InitializeComponent();
|
||||
_presentateur = new PresentateurWEntrainement(this);
|
||||
|
||||
InitializeComponent();
|
||||
|
||||
for (int i = 1; i <= CstApplication.NBFIGURE; i++)
|
||||
{
|
||||
@@ -199,7 +209,7 @@ namespace JeuHoy_WPF.View
|
||||
private void btnApprendre_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
//Ajouter du code ICI
|
||||
|
||||
EntrainementEvt(this, e);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user