1234567891011121314151617181920212223242526 |
- using System;
- using System.Windows.Media.Imaging;
- using InABox.WPF;
- using PRS.Shared;
- namespace PRSDesktop
- {
- public class StandardLeaveAppointment : CalendarAppointment<StandardLeaveModel>
- {
- // public override DateTime StartTime { get; set; }
- // public override DateTime EndTime { get; set; }
- // public override string? Subject { get; set; }
- // public override string? Notes { get; set; }
- // public override BitmapImage? Image { get; set; }
-
- public StandardLeaveAppointment(StandardLeaveModel model, Func<StandardLeaveModel?, Guid> employeeid, Func<StandardLeaveModel?, string> color, RosterBlock block) : base(model, employeeid, color)
- {
- StartTime = block.Date.Add(block.Start);
- EndTime = block.Date.Add(block.Finish);
- Subject = Model.Subject;
- Notes = "";
- Image = Resources.lock_sml.AsBitmapImage(32, 32);
- }
- }
- }
|