Exemplo n.º 1
0
 public void setToNull(object sender, EventArgs e)
 {
     if (sender is ScoreRecoView)
     {
         _scoreRecoView = null;
     }
     else if (sender is BaseActionConsultation)
     {
         _consultation = null;
     }
     else if (sender is RecoView)
     {
         _recommandation = null;
     }
     else if (sender is RepartitionView)
     {
         _repartition = null;
     }
     else if (sender is RepartitionValeurView)
     {
         _repartitionValeur = null;
     }
     else if (sender is SimulationScoreView)
     {
         _simulation = null;
     }
     else if (sender is DoublonsView)
     {
         _doublons = null;
     }
     else if (sender is ScoreChangeView)
     {
         _changementsScores = null;
     }
 }
Exemplo n.º 2
0
 private void Reco_Click(object sender, RoutedEventArgs e)
 {
     if (_recommandation == null)
     {
         _recommandation = new RecoView();
         _recommandation.Show();
         _recommandation.Closed += new EventHandler(setToNull);
     }
     else
     {
         _recommandation.Focus();
     }
 }
Exemplo n.º 3
0
        private void CleanRecommandations_Click(object sender, RoutedEventArgs e)
        {
            RecoView reco = new RecoView(false);

            reco.Show();
        }