private void OKbutton_Click(object sender, RoutedEventArgs e)
        {
            temp.Signals                  = checkBox.IsChecked.Value;
            temp.LookingAtMirrors         = checkBox1.IsChecked.Value;
            temp.Parking                  = checkBox2.IsChecked.Value;
            temp.ParkingInReverse         = checkBox3.IsChecked.Value;
            temp.KeepDistance             = checkBox4.IsChecked.Value;
            temp.Speed                    = checkBox5.IsChecked.Value;
            temp.Bypassing                = checkBox6.IsChecked.Value;
            temp.DriveInTheRightLane      = checkBox7.IsChecked.Value;
            temp.PreemptiveRight          = checkBox8.IsChecked.Value;
            temp.Stopping                 = checkBox9.IsChecked.Value;
            temp.ObedienceToTrafficSigns  = checkBox10.IsChecked.Value;
            temp.AddressingPedestrians    = checkBox11.IsChecked.Value;
            temp.ALeapInTheRise           = checkBox12.IsChecked.Value;
            temp.ChangeGears              = checkBox13.IsChecked.Value;
            temp.EngineShutdown           = checkBox14.IsChecked.Value;
            temp.IntegrationIntoMovement  = checkBox15.IsChecked.Value;
            temp.SkillForVehicleOperation = checkBox16.IsChecked.Value;
            temp.AeactionTime             = checkBox17.IsChecked.Value;

            UpdateTestPage criterions = new UpdateTestPage(" ");

            this.Close();
        }
Exemplo n.º 2
0
 private void button_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (textBoxTesterId.Text.Length < 9)
         {
             textBoxTesterId.BorderBrush = Brushes.Red;
             throw new Exception("id - Not enough digits");
         }
         if (textBoxTesterId.Text.Length > 9)
         {
             textBoxTesterId.BorderBrush = Brushes.Red;
             throw new Exception("Id - To much digits");
         }
         IEnumerable <Tester> findTester = bl.GetAllTesters(m => m.TesterId == textBoxTesterId.Text);
         if (findTester.Count() == 0)
         {
             throw new Exception("Tester Is Not Exsist");
         }
         UpdateTestPage t = new UpdateTestPage(textBoxTesterId.Text);
         this.NavigationService.Navigate(t);
     }
     catch (Exception message)
     {
         MessageBox.Show(message.Message);
         textBoxTesterId.Text = "";
     }
 }