StandardLeaveAppointment.cs 979 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Windows.Media.Imaging;
  3. using Comal.Classes;
  4. using InABox.WPF;
  5. using PRS.Shared;
  6. namespace PRSDesktop
  7. {
  8. public class StandardLeaveAppointment : CalendarAppointment<StandardLeaveModel>
  9. {
  10. // public override DateTime StartTime { get; set; }
  11. // public override DateTime EndTime { get; set; }
  12. // public override string? Subject { get; set; }
  13. // public override string? Notes { get; set; }
  14. // public override BitmapImage? Image { get; set; }
  15. public StandardLeaveAppointment(StandardLeaveModel model, Func<StandardLeaveModel?, Guid> employeeid, Func<StandardLeaveModel?, string> color, RosterBlock block) : base(model, employeeid, color)
  16. {
  17. StartTime = block.Date.Add(block.Start);
  18. EndTime = block.Date.Add(block.Finish);
  19. Subject = Model.Subject;
  20. Notes = "";
  21. Image = Resources.lock_sml.AsBitmapImage(32, 32);
  22. }
  23. }
  24. }