public UserControl_Guess(UserControl_Passive passiv)
 {
     this.activateTuto = false;
     InitializeComponent();
     Console.WriteLine("constructor2");
     DataContext = new Guess_ViewModel(this);
     this.PassiveView.Children.Add(passiv);
 }
        public UserControl_Guess(StateUpdate_Model stateUpdate, HomePage_ViewModel homePageViewModel)
        {
            thirdGess         = false;
            this.activateTuto = false;
            InitializeComponent();

            DataContext          = new Guess_ViewModel(this);
            this.PassivViewGuess = new UserControl_Passive(stateUpdate, homePageViewModel);
            this.PassiveView.Children.Add(this.PassivViewGuess);
            //if (stateUpdate.attemptLeft == 0)
            //    this.GuessButton.IsEnabled = false;
        }
        public UserControl_Guess(UserControl_Passive p, Interactiv_Tutoriel tuto)
        {
            thirdGess = false;

            this.passiv       = true;
            this.activateTuto = true;
            this.tuto         = tuto;
            InitializeComponent();
            this.PassiveView.Children.Add(p);
            p.BarTuto.Answer.Content = "1";
            p.BarTuto.Timer.Content  = "10";
            this.passTuto            = p;
        }
        public void step1()
        {
            this.firstGuess      = true;
            this.guess.IsEnabled = false;
            passTuto             = new UserControl_Passive(true);
            this.PassiveView.Children.Add(passTuto);

            Tutorial_popupWindow a = new Tutorial_popupWindow("Bienvenu dans la vue de devineur, comme vous pouvez le voir votre rôle à changer, et en bas du rôle c'est rendu un chiffre au lieu d'un mot, " +
                                                              "ce chifre indique le nombre d'essais que vous avez pour deviner un dessin, le reste des informations sont les mêmes que dans la vue précédente", "Ok");

            a.ShowDialog();
            a = new Tutorial_popupWindow("Après avoir cliquer sur Ok, vous allez voir un dessin qui se dessine cela va être une simulation de votre coéquipier cela prendra 15 seconde", "Ok");
            a.ShowDialog();
            passTuto.lunchVirualPlayer();
            this.guess.IsEnabled       = true;
            this.GuessButton.IsEnabled = false;
            this.GuessWord.IsEnabled   = true;

            this.indice.IsEnabled = false;
            this.wait();
        }
Пример #5
0
 public void step4(UserControl_Passive pass)
 {
     this.tuto.Children.Remove(pass);
     this.tuto.Children.Add(new UserControl_Guess(pass, this));
 }