Esempio n. 1
0
 public Invoice(int id, Vehicle.Vehicle servicedVehicle, Service service, Company company, Employee servicedBy, double vat, double total, double finalTotal)
 {
     Id = id;
     ServicedVehicle = servicedVehicle;
     Service         = service;
     Company         = company;;
     ServicedBy      = servicedBy;
     Vat             = vat;
     Total           = total;
     FinalTotal      = finalTotal;
 }
Esempio n. 2
0
 public Invoice(int id, Vehicle.Vehicle servicedVehicle, Service service, Client client, Employee servicedBy, double vat, double total, double finalTotal)
 {
     Id = id;
     ServicedVehicle = servicedVehicle;
     Service         = service;
     Client          = client;
     ServicedBy      = servicedBy;
     Vat             = vat;
     Total           = total;
     FinalTotal      = finalTotal;
 }
Esempio n. 3
0
 public Appointment(string subject, DateTime appointmentDate, string serviceType, int startTime, int endTime, int slotNumber, Vehicle.Vehicle vehicle, bool isNewClient)
 {
     RezervimID  = ++_appointmentId;
     Subject     = subject;
     Data        = appointmentDate;
     ServiceType = serviceType;
     StartTime   = startTime;
     EndtTime    = endTime;
     SlotNumber  = slotNumber;
     Vehicle     = vehicle;
     IsTreated   = false;
     IsCanceled  = false;
     IsNewClient = isNewClient;
 }
Esempio n. 4
0
        private static double getDebrisMovement(Vehicle.Vehicle debris)
        {
            double changeX;

            if (debris.Direction == Direction.Right)
            {
                changeX = debris.Speed;
            }
            else
            {
                changeX = -debris.Speed;
            }

            return(changeX);
        }