예제 #1
0
        public void TakeOrder(Client client, Place location, Place destination)
        {
            AddClient(client);
            Taxer FreeTaxer = Taxers.OrderBy(x => x.ItStatus).ElementAt(Taxers.Count - 1);

            FreeTaxer.TakeTrip(client, location, destination);
        }
예제 #2
0
 public bool IsTaxersDay(Taxer tax, WorkDays day)
 {
     if (tax.Schedule.schedule.Contains(day))
     {
         return(true);
     }
     return(false);
 }
예제 #3
0
 public UserEventArgs(string m, Client client, Taxer taxer)
 {
     _Message = m;
     _Client  = client;
     _Taxer   = taxer;
 }
예제 #4
0
 public void DelTaxer(Taxer tax)
 {
     Taxers.Remove(tax);
     tax.Close();
 }
예제 #5
0
 public void SetTaxerSalary(Taxer taxer, double s)
 {
     taxer.Salary = s;
 }
예제 #6
0
 public double GetTaxerSalary(Taxer taxer)
 {
     return(taxer.Salary);
 }
예제 #7
0
 public WorkWeek GetTaxerSchedule(Taxer taxer)
 {
     return(taxer.Schedule);
 }
예제 #8
0
 public void SetTaxerSalaryPerTrip(Taxer tax, int s)
 {
     tax.SalaryPerTrip = s;
 }
예제 #9
0
 public int GetTaxerSalaryPerTrip(Taxer tax)
 {
     return(tax.SalaryPerTrip);
 }
예제 #10
0
 public void AddTaxerDay(Taxer tax, WorkDays day)
 {
     tax.Schedule.schedule.Add(day);
 }
예제 #11
0
 public void DelTaxerDay(Taxer tax, WorkDays day)
 {
     tax.Schedule.schedule.Remove(day);
 }