Esempio n. 1
0
 private void startChrono(object sender, RoutedEventArgs e)
 {
     if (chronometre == null)
     {
         chronometre = new Chronometre();
     }
     else
     {
         updateTimer();
         chronometre = null;
     }
 }
        public ControlAjoutChrono(AppControler controler, Pilote user)
        {
            Controler        = controler;
            this.DataContext = Controler;

            InitializeComponent();

            ComboBoxNumLicence.SelectedItem = (Controler.RecherchePilote(user.NumLicence));
            ComboBoxCondClim.ItemsSource    = Enum.GetValues(typeof(CondClim));
            ComboBoxCondClim.SelectedItem   = CondClim.Soleil;
            ComboBoxEtatCirc.ItemsSource    = Enum.GetValues(typeof(EtatCirc));
            ComboBoxEtatCirc.SelectedItem   = EtatCirc.Sec;
            NouvChrono = new Chronometre
            {
                NumLicence = (Controler.RecherchePilote(user.NumLicence)).NumLicence,
                NumCircuit = Controler.ListeCircuits[0].NumCircuit,
                DateChrono = DateTime.Today,
            };

            AjoutOK = false;
            CurentGrid.DataContext = NouvChrono;
        }
Esempio n. 3
0
 public Ecran_Horloge()
 {
     InitializeComponent();
     Chronometre.Start();
 }