Пример #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            bool check = (bool)CheckBoxFullFuel.IsChecked;

            newAuto = ControllerAuto.AddRefueling(double.Parse(price.Text), double.Parse(volume.Text), double.Parse(carMileage.Text), newAuto, check);

            this.Close();
        }
Пример #2
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     ControllerAuto.Add(carBrand.Text,
                        carModel.Text,
                        gosNumber.Text,
                        int.Parse(autoYear.Text),
                        color.Text,
                        double.Parse(carMileage.Text),
                        double.Parse(fuelVolume.Text));
     this.Close();
 }
Пример #3
0
 private void Window_Initialized(object sender, EventArgs e)
 {
     ComboBoxCars.ItemsSource = ControllerAuto.Load();
     ButtonEnabled(false);
 }
Пример #4
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     ControllerAuto.AddService(name.Text, double.Parse(price.Text), newAuto);
     this.Close();
 }