public WorkTimeClass(TimeClass[] workTimes, TimeClass[] breakTimes = null)
 {
     if (workTimes.Length == 7 && breakTimes.Length == 7)
     {
         WorkTimes  = workTimes;
         BreakTimes = breakTimes;
     }
     else
     {
         WorkTimes = new TimeClass[7] {
             new TimeClass(),
             new TimeClass(),
             new TimeClass(),
             new TimeClass(),
             new TimeClass(),
             new TimeClass(),
             new TimeClass()
         };
         BreakTimes = new TimeClass[7] {
             new TimeClass(),
             new TimeClass(),
             new TimeClass(),
             new TimeClass(),
             new TimeClass(),
             new TimeClass(),
             new TimeClass()
         };
     }
 }
 public SignUpClass(UserClass user, CompanyClass company, ServiceClass service, TimeClass time, string comment = "")
 {
     User      = user;
     Company   = company;
     Service   = service;
     Time      = time;
     Comment   = comment;
     Confirmed = false;
 }
 public SignUpClass()
 {
     Company   = new CompanyClass();
     User      = new UserClass();
     Service   = new ServiceClass();
     Time      = new TimeClass();
     Comment   = "";
     Confirmed = false;
 }
Example #4
0
 public ServiceClass(string name, int price, TimeClass length = null)
 {
     Name  = name;
     Price = price;
     if (length == null)
     {
         Length = new TimeClass();
     }
     else
     {
         Length = length;
     }
 }
 public WorkTimeClass()
 {
     WorkTimes = new TimeClass[7] {
         new TimeClass(),
         new TimeClass(),
         new TimeClass(),
         new TimeClass(),
         new TimeClass(),
         new TimeClass(),
         new TimeClass()
     };
     BreakTimes = new TimeClass[7] {
         new TimeClass(),
         new TimeClass(),
         new TimeClass(),
         new TimeClass(),
         new TimeClass(),
         new TimeClass(),
         new TimeClass()
     };
 }
Example #6
0
 public ServiceClass()
 {
     Name   = "";
     Price  = -1;
     Length = new TimeClass();
 }