Exemplo n.º 1
0
 /// <summary>
 /// Erstell AppointmentBuilder für einen vorhandenen Termin
 /// </summary>
 /// <param name="appointment"></param>
 public AppointmentBuilder(IAppointment appointment)
 {
     _Owner     = appointment.Owner;
     _beginDate = new Date(appointment.BeginDate);
     _beginTime = new Time(appointment.BeginTime);
     _endDate   = new Date(appointment.EndDate);
     _endTime   = new Time(appointment.EndTime);
     _details   = appointment.Details;
     _cat       = appointment.Category;
     _loc       = new BI.Bo.Addresses.Location()
     {
         City       = appointment.Location.City,
         PostalCode = appointment.Location.PostalCode,
         Country    = appointment.Location.Country,
         Street     = appointment.Location.Street
     };
 }
Exemplo n.º 2
0
        public AppointmentBuilder()
        {
            var now = DateTime.Now;

            _loc            = new BI.Bo.Addresses.Location();
            _loc.City       = "";
            _loc.Country    = System.Threading.Thread.CurrentThread.CurrentCulture.Name.Split('-')[1];
            _loc.PostalCode = "";
            _loc.Street     = "";

            _Owner = "";

            _beginDate = new Date(now);
            _beginTime = new Time(now);
            _endDate   = new Date(now);
            _endTime   = new Time(now);
        }