Exemple #1
0
 private void btnInsertNewCar_Click(object sender, EventArgs e)
 {
     try
     {
         CarService.CarManagementClient client;
         client = new CarService.CarManagementClient();
         CarService.Car car;
         car           = new CarApplication.CarService.Car();
         car.BrandName = "BMW";
         car.TypeName  = "320d";
         int newCarID;
         newCarID = client.InsertNewCar(car);
     }
     catch (Exception ex)
     {
         textBox1.Text = ex.Message;
     }
 }
Exemple #2
0
 public bool RemoveCar(CarApplication.CarService.Car car)
 {
     return(base.Channel.RemoveCar(car));
 }
Exemple #3
0
 public void UpdateMilage(CarApplication.CarService.Car car)
 {
     base.Channel.UpdateMilage(car);
 }
Exemple #4
0
 public int InsertNewCar(CarApplication.CarService.Car car)
 {
     return(base.Channel.InsertNewCar(car));
 }