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(); }
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(); }
private void Window_Initialized(object sender, EventArgs e) { ComboBoxCars.ItemsSource = ControllerAuto.Load(); ButtonEnabled(false); }
private void Button_Click(object sender, RoutedEventArgs e) { ControllerAuto.AddService(name.Text, double.Parse(price.Text), newAuto); this.Close(); }